Computer Science EngineeringHard
A simple graph has degree sequence 4, 3, 3, 2, 2. How many edges does it have?
- A. 14
- B. 6
- C. 8
- D. 7
Correct answer: D. 7
By the handshake lemma edges = (4+3+3+2+2)/2 = 7.
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
- A graph is bipartite if and only if
- 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