- Type
- Quiz
- Course
- CS502 Fundamentals of Algorithms
- Size
- PDF 682 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 24. Download the file for all 24 pages.
WMIg3Q
CS502 QUIZ 1 SOLVED
- DFS or BFS yields a _ _ of the graph.
Traversed Tree
b) Spanning tree
c. Simple Tree d. Free Tree
Q2. In Knapsack Problem, the goal is to put items in the knapsack such that the value of the items is subject to weight limit of knapsack.
Correct answer: Maximized
- Using ASCII code, each character is represented by a fixed-length code of bits per character.
WMIg3Q
c) 8
d) 10
Q4. Which type of algorithm is harder to prove the correctness?
Correct answer: Greedy
Q5. Consider the string "abcdaacac". if the string is coded with ASCII codes, the message length would be .
Correct answer: 75 bits
8*9=72 bits are the right answer
Q6. In algorithm, you hope that by choosing a local optimum at each step, you will end up at a global optimum.
Correct answer: Greedy
WMIg3Q
d) Brute force
Q7. For a digraph G = (V, E), Sum of in-degree(v)
Correct answer: =Sum of out-degree(v)
- In inductive approach of knapsack problem, we consider 2 cases,
Or a) Median, Mode b) Recursive, Iterative
c) Leave object, Take object
d. Sequentially, Parallel
- A/an is one in which you want to find, not just a solution, but the best solution.
a) Optimization Problem
b) Divide and Conquer c) NP Complete problem d) Best Problem
Related CS502 files
All CS502 files →- CS502 Highlighted Handouts Set 2 Highlighted PDF 1.7 MB
- CS502 Final Term Past Paper Spring 2005 Final term ZIP 93 KB
- CS502 Grand Quiz 2020 by Bounded Forever Quiz PDF 691 KB
- CS502 Quiz 4 Jan 2023 Quiz PDF 191 KB
- CS502 Solved Grand Quiz 2021 by Sonu Ilyas Quiz PDF 4.5 MB
- CS502 Slides Quiz PPTX 3.6 MB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.