Computer Science EngineeringHard
A graph is bipartite if and only if
- A. it contains no cycle
- B. it contains no odd-length cycle
- C. it contains no even-length cycle
- D. it is a tree
Correct answer: B. it contains no odd-length cycle
Two-colourability is equivalent to the absence of odd cycles.
Practise more Algorithms, Data Structures & Programming (ISRO CS) questionsAlgorithms, Data Structures & Programming (ISRO CS): notes and key points
More Algorithms, Data Structures & Programming (ISRO CS) questions
- The max-heap [90, 80, 70, 60, 50] stored in an array has the key 85 inserted with the standard sift-up. The resulting array is
- The minimum number of comparisons needed to find both the largest and second-largest of 16 distinct elements (tournament method) is
- Which data structure follows the Last-In-First-Out principle?
- The height (in edges) of a complete binary tree having n nodes is
- The time needed to build a binary heap from n arbitrary elements using bottom-up heapify is
- The maximum number of nodes in a binary tree of height h (root at height 0) is