Which algorithmic approach makes the locally optimal (best immediate) choice at each step with the hope of finding a global optimum (e.g., Dijkstra's shortest path, Huffman coding)?
कौन सी एल्गोरिदम तकनीक हर चरण में सबसे बेहतर तात्कालिक विकल्प चुनती है ताकि समग्र रूप से सर्वोत्तम परिणाम मिल सके?
Solution Breakdown:
-> Greedy algorithms are fast and simple, making the best choice available at the current moment without reconsidering previous choices.
-> Hence, Option (B) is the correct answer.
-> ग्रीडी एल्गोरिदम हर कदम पर सबसे लाभदायक तात्कालिक विकल्प चुनता है, जैसे हफमैन कोडिंग और डिज्क्स्ट्रा एल्गोरिदम।
-> इसलिए विकल्प (B) बिल्कुल सही है।