Question 83Asked in Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 1 (10:00 AM)

Which among the following search algorithms requires least memory?निम्नलिखित खोज एल्गोरिदम में से किसके लिए कम से कम मेमोरी की आवश्यकता होती है?

निम्नलिखित खोज एल्गोरिदम में से किसके लिए कम से कम मेमोरी की आवश्यकता होती है?
  1. AOptimal Searchइष्टतम खोज
  2. BLinear Searchरैखिक खोज
  3. CDFSDFS
  4. DBFSBFS
Show answerHide answer

Correct answer: (C) DFSDFS

Explanation

DFS stores only the current path and its unexplored siblings, O(bm) memory, whereas BFS must keep a whole frontier, O(bᵈ).DFS केवल वर्तमान रास्ता और उसके अनदेखे भाई-नोड रखता है, यानी O(bm) मेमोरी, जबकि BFS को पूरी frontier रखनी पड़ती है, यानी O(bᵈ)।

From Bihar STET 2024 Paper II Computer Science PYQ, 11 Jun 2024, Shift 1 (10:00 AM)

This is question 83 of Bihar STET 2024 Paper II Computer Science PYQ, 11 Jun 2024, Shift 1 (10: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.