Question

2. For a given graph G, we say that H is a clique if H is a complete subgraph of Design an algorithm such that if given a gra

0 0
Add a comment Improve this question Transcribed image text
Answer #1

There are \binom{n}{k} different sub-graphs of k vertices of the graph G for a fixed k

We need to check for each ん2 possible edges between these k vertices whether such an edge exists or not. If it exists for each pair of vertices we have a clique and if it doesn't, we don't have a clique

For fixed k we have n(n O(n*) k!

So that our algorithm is a O(n*) 7l polynomial time algorithm which decides if a given undirected graph has a clique or not

Add a comment
Know the answer?
Add Answer to:
2. For a given graph G, we say that H is a clique if H is...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT