Let the G be a graph with 100 vertices numbered 1 to 100
Two vertices i and j are adjecnt if | i-j| =8 or | i-j|
=12. The Number of connected components in G is ?

Answer Posted / achintya singhal

good question
there are 4 connected components..
first contains vertices numbered 1, 5, 9,13,17,21,25,29....
second contains 2, 6, 10, 14, 18.......
third one contains 3, 7, 11, 15......
fourth contains 4, 8, 12, 16, 20.......

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why using cookie to store session info is a better idea than just using session info in the request?

543


Which interfaces are implemented by hashmap?

510


What is max heapify?

480


Who invented quicksort?

509


How do you create a tree diagram?

480






Which is the parent class of printerstatereasons class?

468


Explain about set and their types in a collection?

472


What are the advantages and disadvantages of linked list?

422


How will you explain circular linked list?

519


In which matrix, we can use multilinked structures?

503


What is bubble sort and quick sort?

521


Which data structure is used to perform recursion?

491


What is the default size of arraylist?

479


Define splay tree?

593


What is a list in data structure?

456