Question 82Asked in Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 1 (9:00 AM)

In the context of dynamic programming for solving multistage graph problems, what isमल्टीस्टेज ग्राफ समस्याओं को हल करने के लिए गतिशील प्रोग्रामिंग के संदर्भ में, मेमोइजेशन का

In the context of dynamic programming for solving multistage graph problems, what is memoization used for?
मल्टीस्टेज ग्राफ समस्याओं को हल करने के लिए गतिशील प्रोग्रामिंग के संदर्भ में, मेमोइजेशन का उपयोग किस लिए किया जाता है?
  1. ADividing the graph into stagesग्राफ को चरणों में विभाजित करना
  2. BSorting the vertices in the graphग्राफ में कोने को छाँटना
  3. CStoring solutions to overlapping subproblemsउपप्रकारों को ओवरलैप करने के लिए समाधान का भंडारण
  4. DFinding the shortest pathसबसे छोटा पथ खोजना
Show answerHide answer

Correct answer: (C) Storing solutions to overlapping subproblemsउपप्रकारों को ओवरलैप करने के लिए समाधान का भंडारण

Explanation

Memoization stores the results of overlapping subproblems (for example the best cost from each vertex to the sink) so they are reused, not recomputed, in multistage graph DP.Memoization ओवरलैपिंग उप-समस्याओं के परिणाम (जैसे हर वर्टेक्स से sink तक की सर्वोत्तम लागत) संग्रहीत करती है ताकि multistage graph DP में उन्हें दोबारा गणना करने के बजाय दोबारा उपयोग किया जाए।

From Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 1 (9:00 AM)

This is question 82 of Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 1 (9:00 AM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.