Open Access Open Access  Restricted Access Subscription Access

Algorithm to Find all Cliques in a Graph


Affiliations
1 Department of Computer Science, St. Xavier’s College (Autonomous), Palayamkottai-627002, India
2 Research Department of Mathematics, St. Xavier’s College (Autonomous), Palayamkottai-627002, India
 

Let V={1, 2, 3, . . . , n} be the vertex set of a graph G, P(V) the powerset of V and AP(V). Then A can be represented as an ordered n-tuple (x1x2x3 . . .xn) where xi=1 if iA, otherwise xi=0 (1≤in). This representation is called binary count (or BC) representation of a set A and denoted as BC(A). Given a graph G of order n, it is shown that every integer m in S={0, 1, 2, . . . , 2n-1} corresponds to a subset A of V and vice versa. We introduce algorithms to find a subset A of the vertex set V={1, 2, 3, . . . , n} of a graph G that corresponds to an integer m in S={0, 1, 2, . . . , 2n-1}, verify whether A is a subset of any other subset B of V and also verify whether the sub graph <A> induced by the set A is a clique or not using BC representation. Also a general algorithm to find all the cliques in a graph G using BC representation is introduced. Moreover we have proved the correctness of the algorithms and analyzed their time complexities.

Keywords

Adjacency Matrix, Binary Count, Clique, Powerset, Subset.
User
Notifications
Font Size

Abstract Views: 112

PDF Views: 0




  • Algorithm to Find all Cliques in a Graph

Abstract Views: 112  |  PDF Views: 0

Authors

A. Ashok Kumar
Department of Computer Science, St. Xavier’s College (Autonomous), Palayamkottai-627002, India
S. Athisayanathan
Research Department of Mathematics, St. Xavier’s College (Autonomous), Palayamkottai-627002, India
A. Antonysamy
Research Department of Mathematics, St. Xavier’s College (Autonomous), Palayamkottai-627002, India

Abstract


Let V={1, 2, 3, . . . , n} be the vertex set of a graph G, P(V) the powerset of V and AP(V). Then A can be represented as an ordered n-tuple (x1x2x3 . . .xn) where xi=1 if iA, otherwise xi=0 (1≤in). This representation is called binary count (or BC) representation of a set A and denoted as BC(A). Given a graph G of order n, it is shown that every integer m in S={0, 1, 2, . . . , 2n-1} corresponds to a subset A of V and vice versa. We introduce algorithms to find a subset A of the vertex set V={1, 2, 3, . . . , n} of a graph G that corresponds to an integer m in S={0, 1, 2, . . . , 2n-1}, verify whether A is a subset of any other subset B of V and also verify whether the sub graph <A> induced by the set A is a clique or not using BC representation. Also a general algorithm to find all the cliques in a graph G using BC representation is introduced. Moreover we have proved the correctness of the algorithms and analyzed their time complexities.

Keywords


Adjacency Matrix, Binary Count, Clique, Powerset, Subset.