Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the use of isEmpty() member methods?

970


Can you use Bubble Sort To sort the number of elements.

848


What is sorted map?

879


How to sort an Array?

896


Which is faster arraylist or linked list?

904


Why hashtable is faster than arraylist?

925


Where will be the free node available while inserting a new node in a linked list?

911


How to reverse singly link list?

932


What is stack and its operations?

837


What member function places a new node at the end of the linked list?

1048


Which are the sorted collections?

933


How do you declare An array of three char pointers

997


Define an algorithm. What are the properties of an algorithm? What are the types of algorithms?

906


Why do we use insertion sort?

842


What is the difference between null and void pointer in data structures?

1146