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

Explain quick sort and merge sort algorithms.

923


What is top in stack?

790


Define a path in a tree?

906


Define data type and what are the types of data type?

839


What do you mean by tree edge?

906


Write any two principles of gradation of structures.

935


Can we null keys in treemap?

954


Is sorting a math skill?

883


How would you implement two stacks using a single array?

928


How does insertion sort works?

821


Explain pre-order and in-order tree traversal.

884


Which is better hashset or treeset?

942


How to compare Two Arrays?

962


Evaluate the following prefix expression " ++ 26 + - 1324" (Similar types can be asked)

925


Is heap sort adaptive?

792