Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 . Which of the following statements about Breadth - First Search ( BFS ) is NOT true? ( A . ) It takes time
Which of the following statements about BreadthFirst Search BFS is NOT true?
A It takes time On long n to visit the site.
B It can be used to test whether a graph is connected or not.
C It can calculate the shortest path from the starting point to each vertex.
D can calculate whether there are loops in the graph.
Which of the following descriptions of DepthFirst Search DFS is NOT true?
a It costs Onm to visit the entire graph.
b The spanning tree of a graph can be computed if the graph is connected.
C Finding loops in a graph.
d find the shortest path between two vertices.
Is the quick sort algorithm a stable algorithm, depending on whether the input data is sorted or randomized? What is the average complexity of the time required for sorting?
a Unstable, with expectation On log n
b Unstable, On log n
c Stable, On
d Stable, On log n
Consider a tree T storing n data items. If T is a binary search tree, what is the worstcase height of T
a n
b n log n
C log n
D n
Consider a tree T storing n data items. If T is a splaytree, what is the worstcase height of T
a None of the following
b n
C log n
d n log n
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started