Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

yoyoyoyofsafegtwagtwegtweafrwefewfww, Lecture notes of Algorithms and Programming

gszgagaecfcrRFwqf wqefr3wqfrQFfEFEWFqefwQFfQRr3R CEWFWEFSFDSVDgWEDGFHFHFVFFEFWgfgfdfhbbfgiBHFBFSWFWEHUFHWUEBWUGFVBUWEGVBYFCHUFHDNEWUFHNDUEW/

Typology: Lecture notes

2019/2020

Uploaded on 04/19/2020

tony54600
tony54600 🇮🇳

1 document

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Analysis & Design Of Algorothms
CS-402
Quiz Assignment
Write the correct answer with justification:
(All correct answers are in BLUE.)
Q1 What happens when the backtracking algorithm reaches a complete
solution?
a) It backtracks to the root
b) It continues searching for other possible solutions
c) It traverses from a different route
d) Recursively traverses through the same route
Q2 Backtracking algorithm is implemented by constructing a tree of
choices called as?
a) State-space tree
b) State-chart tree
c) Node tree
d) Backtracking tree
Q3 Who coined the term ‘backtracking’?
a) Lehmer
b) Donald
c) Ross
d) Ford
Q4 Strassen’s algorithm is a/an_____________ algorithm.
a) Non- recursive
b) Recursive
pf3
pf4

Partial preview of the text

Download yoyoyoyofsafegtwagtwegtweafrwefewfww and more Lecture notes Algorithms and Programming in PDF only on Docsity!

Analysis & Design Of Algorothms

CS-

Quiz Assignment

Write the correct answer with justification:

(All correct answers are in BLUE.)

Q1 What happens when the backtracking algorithm reaches a complete solution? a) It backtracks to the root b) It continues searching for other possible solutions c) It traverses from a different route d) Recursively traverses through the same route Q2 Backtracking algorithm is implemented by constructing a tree of choices called as? a) State-space tree b) State-chart tree c) Node tree d) Backtracking tree Q3 Who coined the term ‘backtracking’? a) Lehmer b) Donald c) Ross d) Ford Q4 Strassen’s algorithm is a/an_____________ algorithm. a) Non- recursive b) Recursive

c) Approximation d) Accurate Q5 Strassen’s matrix multiplication algorithm follows ___________ technique. a) Greedy technique b) Dynamic Programming c) Divide and Conquer d) Backtracking Q6 What is the recurrence relation used in Strassen’s algorithm? a) 7T(n/2) + Theta(n2) b) 8T(n/2) + Theta(n c) 7T(n/2) + O(n2) d) 8T(n/2) + O(n2) Q7 What is the auxiliary space complexity of merge sort? a) O(1) b) O(log n) c) O(n) d) O(n log n) Q8 Which of the following is not a stable sorting algorithm? a) Quick sort b) Cocktail sort c) Bubble sort d) Merge sort Q9 Which of the following sorting algorithm does not use recursion? a) quick sort

c) Lowest cost branch and bound d) Highest cost branch and bound Q15 Which of the following can traverse the state space tree only in DFS manner? a) branch and bound b) dynamic programming c) greedy algorithm d) backtracking