Making pulihora, for a novice unknown to ingredients and quantity, it is a kinda of NP-Complete Problem.
If you were given this problem and asked to solve it.
What would you do if you were an algorithmist
Your goal would be to find approximate solution, where the optimal pulihora is in polynomial distance.
So, for the greedy algorithm,
1. Taste the tamarind :)
2. Make a juice out of it, so that it would be homogeneous.
3. for each increasing delta amount of tamarind juice
add rice and taste it. If you find it more than optimal stop it.
4. From the ratio from step 3, scale the tamarind juice to meet the quantity of rice.
5. Add Basic Spices, use the same algo as in step 3.
6. Put oil and preprocess all the ingredients,
7. A approximate solution for pulihora.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment