adplus-dvertising
frame-decoration

Question

For an n-vertex undirected graph, the time required to find a cycle is ____________

a.

O(n)

b.

O(n²)

c.

O(n+1)

d.

O(logn)

Posted under Discrete Mathematics

Answer: (a).O(n)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. For an n-vertex undirected graph, the time required to find a cycle is ____________

Similar Questions

Discover Related MCQs

Q. A binary cycle space forms a ______ over the two element field.

Q. If G is a simple graph with n-vertices and n>=3, the condition for G has a Hamiltonian circuit is __________

Q. What is a separable graph?

Q. How many edges are there in a complete graph of order 9?

Q. How many cycles are there in a wheel graph of order 5?

Q. The time complexity to find a Eulerian path in a graph of vertex V and edge E is _____________

Q. The time complexity to find shortest distances by using Dijkstra’s algorithm is __________

Q. Topological sorting of a graph represents _______ of a graph.

Q. In preorder traversal of a binary tree the second step is ____________

Q. An important application of binary tree is ______

Q. From the following code identify the which traversal of a binary tree is this __________

//if node has left child
order(node.left)
//if node has right child
order(node.right)
visit(node)

Q. What is the minimum height for a binary search tree with 60 nodes?

Q. From the following code identify the which traversal of a binary tree is this __________
function traversal(node)

{
//Input:root node of the tree
//Output:None
visitLeft(node)
//if node has left child
traversal(node.left)
visit_Below(node)
//if node has right child
traversal(node.right)
visitRight(node)
}

Q. For the expression (7-(4*5))+(9/3) which of the following is the post order tree traversal?

Q. The time complexity of calculating the sum of all leaf nodes in an n-order binary tree is __________

Q. An immediate application of a Depth First Search traversal is __________

Q. Breadth First Search traversal of a binary tree finds its application in __________

Q. Worst case complexity of Breadth First Search traversal __________

Q. Evaluation of expression a/b+c*d-e in postfix notation.

Q. Evaluation of 4*5+3/2-9 in prefix notation.