Exact Polynomial-Time Algorithm for the Clique Problem and P = NP for Clique Problem

Total Page:16

File Type:pdf, Size:1020Kb

Exact Polynomial-Time Algorithm for the Clique Problem and P = NP for Clique Problem International Journal of Computer Applications (0975 – 8887) Volume 73– No.8, July 2013 Exact Polynomial-time Algorithm for the Clique Problem and P = NP for Clique Problem Kanak Chandra Bora Bichitra Kalita Department of Computer Science & Engineering Department of Computer Application (M.C.A.), Royal School of Engineering & Technology, Assam Engineering College, Betkuchi, Guwahati-781035, Assam, India. Jalukbari, Guwahati-781013, Assam, India. ABSTRACT K. Makino and T. Uno discussed the enumeration of In this paper, the Minimum Nil Sweeper Algorithm, maximal bipartite cliques in a bipartite graph [8]. E. Tomita et applicable to Clique problem has been considered. It has been al discussed the worst-case time complexity for generating found that the Minimum Nil Sweeper Algorithm is not maximal cliques of an undirected graph [9]. Takeaki UNO applicable to Clique problem for all undirected graphs which explained techniques for obtaining efficient clique was previously claimed. A new algorithm has been developed enumeration implementations [10]. to study the all clique problems for arbitrary undirected graph Zohreh O. Akbari studied the clique problem and and its complexity is analysed. An experimental result is presented “The Minimum Nil Sweeper Algorithm”, a cited. Finally, the P = NP has been proved for Clique problem. deterministic polynomial time algorithm for the problem of A theorem related to intersection graph is developed. finding the maximum clique in an arbitrary undirected graph [11]. The Minimum Nil sweeper algorithm was made General Terms considering all zeroes on the inaccessibility matrix. The basic P=NP for Clique idea behind the algorithm was that the problem of omitting the minimum number of vertices from the graph so that no zero Keywords would remain except the main diagonal in the adjacency Exact Polynomial-time Algorithm, Clique, Euler-diagram, matrix resulting sub graph. Complexity. P=NP Further, it has been proposed that, considering an arbitrary undirected graph, maximum clique size of the graph 1. INTRODUCTION can be found using the “The Minimum Nil Sweeper Based on solving time, problems are divided into three Algorithm”.[11] categories [1]. The class P consists of those problems that are It is known that heuristic algorithms can determine a solvable in polynomial time. Intractable problems are those problem quickly but they are not guaranteed to give a definite which are unsolvable by polynomial-time algorithms. NP solution to all problems. Exact algorithms can determine a problems are those problems that have no polynomial-time problem and they are guaranteed to give a definite solution to algorithm. It has not yet been found [2], even though many all problems. attempts have made. The paper is organized in three sections. Section 1 The concept of NP-complete problem had been presents introduction part containing previous works of other introduced by S. A. Cook in 1971 [3]. A problem C is NP- researchers including the Minimum Nil Sweeper Algorithm. complete [4] if it satisfies the following conditions Section 2 presents a new general algorithm to solve the Clique (a). C Є NP, and problem for an arbitrary undirected graph. Complexity of the (b). A ≤ pC for any problem A Є NP. general algorithm has been analysed and finally P=NP for The most important open problem in theoretical Clique problem is proved. In section 3, some examples graphs computer science is whether P ≠ NP or P=NP? This question cited and are tested by both the algorithms. And finally a has been one of the deepest, most perplexing open research theorem related to the intersection graph is stated. problems in theoretical computer science since it was first posed in 1971 [3]. It is sufficient to present a polynomial time algorithm for any NP-complete problems [4][5]. Here Clique problem is considered and this is one of Richard Karp‟s 21 2. GENERAL ALGORITHM & IT’S problems [6]. COMPLEXITY A clique in an undirected graph G = (V, E) is a 2.1 General Algorithm: One general algorithm is presented complete sub graph of the graph G. The size of a clique is the here for finding the maximum clique size in an arbitrary number of vertices it contains. The clique problem is one of undirected graph. In the adjacency matrix of an undirected the optimization problems of finding a clique of maximum graph, the elements which are 1, are only considered. In size in a graph. addition to this, row wise clique size is considered and finally The clique problem is NP-complete since we can maximum clique size is found. If the given graph is a check in polynomial time whether some vertices of a graph complete graph with n vertices then the maximum clique size form a clique and 3-CNF-SAT ≤ CLIQUE. Clique problem p of the graph is n-1. If there is only one vertex in the graph has many applications like in social network, bioinformatics then clique size is 1 and if there are two vertices in the graph and in computational chemistry [7]. 19 International Journal of Computer Applications (0975 – 8887) Volume 73– No.8, July 2013 which are connected then the clique size is 2 and for these two Clcount[w]++; cases our algorithm is not required to apply. CL[++R] = B[p +1] ; } Algorithm: we construct an adjacency matrix A for the given ij } graph whose total number of vertices are n. T, i, j, p, w, x, y, IF(Clcount[w] == 0) K, R, Big are integer variables. B[], Clcount[], CL[], { BClique[], B , Clique[] are array of type integer. ij BClique[w] = 0; If( w == T-2) // make the adjacency matrix { Goto LavelBig; Aij = 1 if there is an edge from Vi to Vj } For (i =1; i<= n; i++) Goto LevelB; } { IF ( Clcount [w]> 0) { For(j=1 ; j ≤ n; j++) If (Clcount[w] == 1) { { BClique[w] = 3 ; If( w == T-2) Aij = 0 or 1; { } Goto LevelBig; } } Else Goto LevelB; For (i =1; i ≤ n; i++ ) } { Else for (j= 1; j ≤ n; j++ ) { { LevelA: For (x = 1 ; x ≤ Clcount[w] +1 ; x ++ ) While (i ≠ j) { { R = x; If (Aij != 1) CL[0]=0; Goto Lavelst; Z = CL[x-1] ; } For (y =x + 1 ; y ≤ Clcount[w] + 2; y ++ ) { } If (x = 1 and y ≠ 1 ) } { Printf( “ Maximum clique size is = n-1 “); K=CL[R]; Goto Last; Bxy = AiK ; Levelst: For (i=1; i ≤ n; i++) R++; { If(Bxy == 0 ) T = 1; { For (j = 1; j ≤ n; j++) BClique [w]= 0; { If( w == T-2) If (Aij == 0 ) { Continue; Goto LevelBig; B[T] = j; } T= T + 1; Else } { K = 0; Goto LevelB; LevelB: For (w = 1; w ≤ T – 2; w ++) } { } Clcount[w] = 0; } R = 1 ; If (x ≠ 1 and y ≠ 1 ) CL[R] = B[w]; { For (p = w; p ≤ T-2; p++) K= CL[R]; { Bxy = AZK ; If (AB[w]B[p+1] == 1) R++ ; { If(Bxy == 0) 20 International Journal of Computer Applications (0975 – 8887) Volume 73– No.8, July 2013 { 3. TESTING OF ALGORITHM FOR BClique[w] = 0; GRAPH If( w == T-2) 3.1 Case-1: { Goto LevelBig; Let us verify the algorithms for the graph of figure-1 } Else 1 0 { Goto LevelB; 6 } 2 } } } 5 3 } BClique[w] = Clcount [w] + 2 ; 4 } LevelBig:Big = BClique[1]; Figure 1 W = T-2 For (u = 1; u <= W; u ++) Minimum Nil Sweeper Algorithm gives the out put for the { graph figure 1, which shows that the vertices 5, 6,forms a If (Big < = BClique[u]) clique, which is not a maximum clique. After application of Big = BClique[u]; the General Algorithm [2.1] , the maximum clique size = 3, is } found for the graph of figure 1,which is the correct result. Clique[i] = Big ; } 3.2 Case-2: Big = Clique[1]; Let us consider the graph of figure-2. For (i = 1; i < n; i++ ) { 1 2 If(Big < Clique[i]) Big = Clique[i]; } If (Big==0) 0 3 Big=2; Printf(“Maximum clique size = Big “); Figure 2 Last: STOP END. Again when the Minimum Nil Sweeper Algorithm is used, 2.2 Complexity Analysis of the Algorithm: then the vertices1, 2, 3 forms a maximum clique of size 3. The same result is obtained after application of the General Suppose number of vertices in the undirected graph is „n‟, Algorithm[2.1] . then complexity of the algorithm will be as follows = n2 + n2 + 1 + n[n + (T -2){(T-2) + (count + 1)2 } + n ] + n = 2n2 +1 + n2 + n(T-2)2 + n(T-2)2 + n(T-2)(count + 1)2 + n2 +n 3.3 Case-3: Here “T” and “count” can be considered as (n- something) , Let us consider the graph of figure-3. something < n, and by which complexity of the algorithm will 4 be = O(n ) 6 1 Since Clique problem is an NP-complete problem and from 2 the above General Algorithm[2.1], it is proved that Clique problem can be solved in polynomial time, hence P = NP for 7 Clique problem. 8 5 3 4 Figure 3 21 International Journal of Computer Applications (0975 – 8887) Volume 73– No.8, July 2013 For the graph of figure 3, the maximum clique of size 4 is obtained after application of the Ggeneral Algorithm [2.1] . 3.4 Case-4: Let us consider the graph of figure-4. This graph is considered from a paper of reference number [12], which is known as intersection graph. 1 6 2 4 5 3 12 11 10 13 9 14 8 15 16 7 17 Figure 4 Now applying the General Algorithm, it is found that This process definitely increases the number of curves maximum clique size = 2. Hence the following theoretical horizontally and the intersection graph is obtained as result has been established.
Recommended publications
  • A New Spectral Bound on the Clique Number of Graphs
    A New Spectral Bound on the Clique Number of Graphs Samuel Rota Bul`o and Marcello Pelillo Dipartimento di Informatica - University of Venice - Italy {srotabul,pelillo}@dsi.unive.it Abstract. Many computer vision and patter recognition problems are intimately related to the maximum clique problem. Due to the intractabil- ity of this problem, besides the development of heuristics, a research di- rection consists in trying to find good bounds on the clique number of graphs. This paper introduces a new spectral upper bound on the clique number of graphs, which is obtained by exploiting an invariance of a continuous characterization of the clique number of graphs introduced by Motzkin and Straus. Experimental results on random graphs show the superiority of our bounds over the standard literature. 1 Introduction Many problems in computer vision and pattern recognition can be formulated in terms of finding a completely connected subgraph (i.e. a clique) of a given graph, having largest cardinality. This is called the maximum clique problem (MCP). One popular approach to object recognition, for example, involves matching an input scene against a stored model, each being abstracted in terms of a relational structure [1,2,3,4], and this problem, in turn, can be conveniently transformed into the equivalent problem of finding a maximum clique of the corresponding association graph. This idea was pioneered by Ambler et. al. [5] and was later developed by Bolles and Cain [6] as part of their local-feature-focus method. Now, it has become a standard technique in computer vision, and has been employing in such diverse applications as stereo correspondence [7], point pattern matching [8], image sequence analysis [9].
    [Show full text]
  • A Fast Algorithm for the Maximum Clique Problem Patric R
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Elsevier - Publisher Connector Discrete Applied Mathematics 120 (2002) 197–207 A fast algorithm for the maximum clique problem Patric R. J. Osterg%# ard ∗ Department of Computer Science and Engineering, Helsinki University of Technology, P.O. Box 5400, 02015 HUT, Finland Received 12 October 1999; received in revised form 29 May 2000; accepted 19 June 2001 Abstract Given a graph, in the maximum clique problem, one desires to ÿnd the largest number of vertices, any two of which are adjacent. A branch-and-bound algorithm for the maximum clique problem—which is computationally equivalent to the maximum independent (stable) set problem—is presented with the vertex order taken from a coloring of the vertices and with a new pruning strategy. The algorithm performs successfully for many instances when applied to random graphs and DIMACS benchmark graphs. ? 2002 Elsevier Science B.V. All rights reserved. 1. Introduction We denote an undirected graph by G =(V; E), where V is the set of vertices and E is the set of edges. Two vertices are said to be adjacent if they are connected by an edge. A clique of a graph is a set of vertices, any two of which are adjacent. Cliques with the following two properties have been studied over the last three decades: maximal cliques, whose vertices are not a subset of the vertices of a larger clique, and maximum cliques, which are the largest among all cliques in a graph (maximum cliques are clearly maximal).
    [Show full text]
  • A Fast Heuristic Algorithm Based on Verification and Elimination Methods for Maximum Clique Problem
    A Fast Heuristic Algorithm Based on Verification and Elimination Methods for Maximum Clique Problem Sabu .M Thampi * Murali Krishna P L.B.S College of Engineering, LBS College of Engineering Kasaragod, Kerala-671542, India Kasaragod, Kerala-671542, India [email protected] [email protected] Abstract protein sequences. A major application of the maximum clique problem occurs in the area of coding A clique in an undirected graph G= (V, E) is a theory [1]. The goal here is to find the largest binary ' code, consisting of binary words, which can correct a subset V ⊆ V of vertices, each pair of which is connected by an edge in E. The clique problem is an certain number of errors. A maximal clique is a clique that is not a proper set optimization problem of finding a clique of maximum of any other clique. A maximum clique is a maximal size in graph . The clique problem is NP-Complete. We have succeeded in developing a fast algorithm for clique that has the maximum cardinality. In many maximum clique problem by employing the method of applications, the underlying problem can be formulated verification and elimination. For a graph of size N as a maximum clique problem while in others a N subproblem of the solution procedure consists of there are 2 sub graphs, which may be cliques and finding a maximum clique. This necessitates the hence verifying all of them, will take a long time. Idea is to eliminate a major number of sub graphs, which development of fast and approximate algorithms for cannot be cliques and verifying only the remaining sub the problem.
    [Show full text]
  • The Maximum Clique Problem
    Introduction Algorithms Application Conclusion The Maximum Clique Problem Dam Thanh Phuong, Ngo Manh Tuong November, 2012 Dam Thanh Phuong, Ngo Manh Tuong The Maximum Clique Problem Introduction Algorithms Application Conclusion Motivation How to put as much left-over stuff as possible in a tasty meal before everything will go off? Dam Thanh Phuong, Ngo Manh Tuong The Maximum Clique Problem Introduction Algorithms Application Conclusion Motivation Find the largest collection of food where everything goes together! Here, we have the choice: Dam Thanh Phuong, Ngo Manh Tuong The Maximum Clique Problem Introduction Algorithms Application Conclusion Motivation Find the largest collection of food where everything goes together! Here, we have the choice: Dam Thanh Phuong, Ngo Manh Tuong The Maximum Clique Problem Introduction Algorithms Application Conclusion Motivation Find the largest collection of food where everything goes together! Here, we have the choice: Dam Thanh Phuong, Ngo Manh Tuong The Maximum Clique Problem Introduction Algorithms Application Conclusion Motivation Find the largest collection of food where everything goes together! Here, we have the choice: Dam Thanh Phuong, Ngo Manh Tuong The Maximum Clique Problem Introduction Algorithms Application Conclusion Outline 1 Introduction 2 Algorithms 3 Applications 4 Conclusion Dam Thanh Phuong, Ngo Manh Tuong The Maximum Clique Problem Introduction Algorithms Application Conclusion Graph (G): a network of vertices (V(G)) and edges (E(G)). Graph Complement (G): the graph with the same vertex set of G but whose edge set consists of the edges not present in G. Complete Graph: every pair of vertices is connected by an edge. A Clique in an undirected graph G=(V,E) is a subset of the vertex set C ⊆ V ,such that for every two vertices in C, there exists an edge connecting the two.
    [Show full text]
  • Clique and Coloring Problems Graph Format
    Clique and Coloring Problems Graph Format Last revision: May 08, 1993 This paper outlines a suggested graph format. If you have comments on this or other formats or you have information you think should be included, please send a note to [email protected]. 1 Introduction One purpose of the DIMACS Challenge is to ease the effort required to test and compare algorithms and heuristics by providing a common testbed of instances and analysis tools. To facilitate this effort, a standard format must be chosen for the problems addressed. This document outlines a format for graphs that is suitable for those looking at graph coloring and finding cliques in graphs. This format is a flexible format suitable for many types of graph and network problems. This format was also the format chosen for the First Computational Challenge on network flows and matchings. This document describes three problems: unweighted clique, weighted clique, and graph coloring. A separate format is used for satisfiability. 2 File Formats for Graph Problems This section describes a standard file format for graph inputs and outputs. There is no requirement that participants follow these specifications; however, compatible implementations will be able to make full use of DIMACS support tools. (Some tools assume that output is appended to input in a single file.) 1 Participants are welcome to develop translation programs to convert in- stances to and from more convenient, or more compact, representations; the Unix awk facility is recommended as especially suitable for this task. All files contain ASCII characters. Input and output files contain several types of lines, described below.
    [Show full text]
  • A Tutorial on Clique Problems in Communications and Signal Processing Ahmed Douik, Student Member, IEEE, Hayssam Dahrouj, Senior Member, IEEE, Tareq Y
    1 A Tutorial on Clique Problems in Communications and Signal Processing Ahmed Douik, Student Member, IEEE, Hayssam Dahrouj, Senior Member, IEEE, Tareq Y. Al-Naffouri, Senior Member, IEEE, and Mohamed-Slim Alouini, Fellow, IEEE Abstract—Since its first use by Euler on the problem of the be found in the following reference [4]. The textbooks by seven bridges of Konigsberg,¨ graph theory has shown excellent Bollobas´ [5] and Diestel [6] provide an in-depth investigation abilities in solving and unveiling the properties of multiple of modern graph theory tools including flows and connectivity, discrete optimization problems. The study of the structure of some integer programs reveals equivalence with graph theory the coloring problem, random graphs, and trees. problems making a large body of the literature readily available Current applications of graph theory span several fields. for solving and characterizing the complexity of these problems. Indeed, graph theory, as a part of discrete mathematics, is This tutorial presents a framework for utilizing a particular particularly helpful in solving discrete equations with a well- graph theory problem, known as the clique problem, for solving defined structure. Reference [7] provides multiple connections communications and signal processing problems. In particular, the paper aims to illustrate the structural properties of integer between graph theory problems and their combinatoric coun- programs that can be formulated as clique problems through terparts. Multiple tutorials on the applications of graph theory multiple examples in communications and signal processing. To techniques to various problems are available in the literature, that end, the first part of the tutorial provides various optimal e.g., [8]–[15].
    [Show full text]
  • Transfer Flow Graphs
    CORE Metadata, citation and similar papers at core.ac.uk Provided by Elsevier - Publisher Connector Discrete Mathematics 115 (1993) 187-199 187 North-Holland Transfer flow graphs Klaus Jansen FBIV-Mathematics, University of Trier, Postfach 3825, 5500 Trier, Germany Received 17 October 1990 Revised 30 July 1991 Abstract Jansen, K., Transfer flow graphs, Discrete Mathematics 115 (1993) 187-199. We consider four combinatorial optimization problems (independent set, clique, coloring, partition into cliques) for a special graph class. These graphs G =(iV, E) are generated by nondisjoint union of a cograph and a graph with m disjoint cliques. Such graphs can be described as transfer flow graphs. At first, we show that these graphs occur as compatibility graphs in the synthesis of hardware configurations. Then we prove that the clique problem can be solved in O(lNI’) steps and that the other problems are NP-complete. Moreover, all four problems can be solved in polynomial time if tn is constant. 1. Introduction One of the important problems in the combinatorial graph optimization is the problem of finding a maximum independent set or a maximum clique and the problem of finding a minimum coloring or a minimum partition into cliques, respec- tively. We denote these sizes for a graph G with a(G),w(G), x(G) and X(G). In a historical paper, Karp [S] has shown that these optimization problems are NP- complete for general graphs. Since often only a subclass of all graphs occurs, it is important to know how difficult the subproblems are. Johnson [7] has summarized the results for several graph classes.
    [Show full text]
  • Is the Space Complexity of Planted Clique Recovery the Same As That of Detection?
    Is the Space Complexity of Planted Clique Recovery the Same as That of Detection? Jay Mardia Department of Electrical Engineering, Stanford University, CA, USA [email protected] Abstract We study the planted clique problem in which a clique of size k is planted in an Erdős-Rényi graph 1 G(n, 2 ), and one is interested in either detecting or recovering this planted clique. This problem is interesting because it is widely believed to show a statistical-computational gap at clique size √ k = Θ( n), and has emerged as the prototypical problem with such a gap from which average-case hardness of other statistical problems can be deduced. It also displays a tight computational connection between the detection and recovery variants, unlike other problems of a similar nature. This wide investigation into the computational complexity of the planted clique problem has, however, mostly focused on its time complexity. To begin investigating the robustness of these statistical-computational phenomena to changes in our notion of computational efficiency, we ask- Do the statistical-computational phenomena that make the planted clique an interesting problem also hold when we use “space efficiency” as our notion of computational efficiency? It is relatively easy to show that a positive answer to this question depends on the existence of a √ O(log n) space algorithm that can recover planted cliques of size k = Ω( n). Our main result comes √ very close to designing such an algorithm. We show that for k = Ω( n), the recovery problem can ∗ ∗ √k be solved in O log n − log n · log n bits of space.
    [Show full text]
  • The Hidden Clique Problem and Graphical Models
    The hidden clique problem and graphical models Andrea Montanari Stanford University July 15, 2013 Andrea Montanari (Stanford University) Lecture 6 July 15, 2013 1 / 39 Outline 1 Finding a clique in a haystack 2 A spectral algorithm 3 Improving over the spectral algorithm Andrea Montanari (Stanford University) Lecture 6 July 15, 2013 2 / 39 Finding a clique in a haystack Andrea Montanari (Stanford University) Lecture 6 July 15, 2013 3 / 39 General Problem G = (V , E) a graph. S ⊆ V supports a clique (i.e. (i, j) ∈ E for all i, j ∈ S) Problem : Find S. Andrea Montanari (Stanford University) Lecture 6 July 15, 2013 4 / 39 General Problem G = (V , E) a graph. S ⊆ V supports a clique (i.e. (i, j) ∈ E for all i, j ∈ S) Problem : Find S. Andrea Montanari (Stanford University) Lecture 6 July 15, 2013 4 / 39 General Problem G = (V , E) a graph. S ⊆ V supports a clique (i.e. (i, j) ∈ E for all i, j ∈ S) Problem : Find S. Andrea Montanari (Stanford University) Lecture 6 July 15, 2013 4 / 39 Example 1: Zachary’s karate club Andrea Montanari (Stanford University) Lecture 6 July 15, 2013 5 / 39 A catchier name Finding a terrorist cell in a social network Andrea Montanari (Stanford University) Lecture 6 July 15, 2013 6 / 39 Toy example: 150 nodes, 15 highly connected 0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0 Here binary data: Can generalize. Andrea Montanari (Stanford University) Lecture 6 July 15, 2013 7 / 39 Of course not the first 15.
    [Show full text]
  • NP-Completeness (Chapter 8)
    CSE 521" Algorithms NP-Completeness (Chapter 8) 1 Polynomial Time 2 The class P Definition: P = the set of (decision) problems solvable by computers in polynomial time, i.e., T(n) = O(nk) for some fixed k (indp of input). These problems are sometimes called tractable problems. Examples: sorting, shortest path, MST, connectivity, RNA folding & other dyn. prog., flows & matching" – i.e.: most of this qtr (exceptions: Change-Making/Stamps, Knapsack, TSP) 3 Why “Polynomial”? Point is not that n2000 is a nice time bound, or that the differences among n and 2n and n2 are negligible. Rather, simple theoretical tools may not easily capture such differences, whereas exponentials are qualitatively different from polynomials and may be amenable to theoretical analysis. “My problem is in P” is a starting point for a more detailed analysis “My problem is not in P” may suggest that you need to shift to a more tractable variant 4 Polynomial vs " Exponential Growth 22n! 22n 2n/10! 2n/10 1000n2 1000n2! 5 Decision vs Search Problems 6 Problem Types A clique in an undirect graph G=(V,E) is a subset U of V such that every pair of vertices in U is joined by an edge. E.g., mutual friends on facebook, genes that vary together An optimization problem: How large is the largest clique in G A search problem: Find the/a largest clique in G A search problem: Given G and integer k, find a k-clique in G A decision problem: Given G and k, is there a k-clique in G A verification problem: Given G, k, U, is U a k-clique in G 7 Decision Problems So far we have mostly considered search and optimization problems – “Find a…” or “How large is the largest…” Below, we mainly restrict discussion to decision problems - problems that have an answer of either yes or no.
    [Show full text]
  • Finding Cliques in Simulated Social Networks Using Graph Coloring Technique
    I Finding Cliques In Simulated Social Networks Using Graph Coloring Technique اكتشاف المجموعات في الشبكات اﻻجتماعية اﻻفتراضية باستخدام تقنية تلوين المخططات Prepared By Mohammad Hussein Alomari Supervisors Dr. Oleg Viktorov Dr. Mohammad Malkawi Thesis Submitted in Partial Fulfillment of the requirements for the Degree of Master of Computer Science Department Of Computer Science Faculty of Information Technology Middle East University January, 2017 II III IV V ACKNOWLEDGEMENT I would like to thank my God firstly then to thank the Middle East University which is anchored in its mission to the” knowledge power” and preparing it’s students to be leaders and to be qualified whatever position they occupied. My thesis advisors Dr Fayez Alshrouf at Middle East University, Dr Mohammad Malkawi at Jordan University of. Science and Technology, Dr Oleg Vectorov at Middle East University. To them I owe a great debt of thanks for their patience, motivation and sportiness, their offices always open whenever I ran into a trouble spot or had a question about my research or writing. They steered me in the right the direction whenever they thought I needed it. To my examination committee, the chairman Dr. Sharefa Murad and, the member Dr. Rizik Al-Sayyed, thank you for your constructive remarks and support. I would like to extend my gratitude to all of the staff in the faculty of information technology on their extensive efforts in the amelioration of the college and students Finally, special recognition goes out to my parents, my family and my friends to support and continuous encouragement throughout my years of study and through the process of researching and writing this thesis.
    [Show full text]
  • Clique Problem Is NP-Complete
    Clique Problem Is NP-Complete In this lecture, we prove NP-completeness of yet another problem { the clique problem. 1 What is Clique Problem What is a clique: reminder. In a graph, a subgraph is what we get if we take some of the vertices of the original graph and all the edges connecting these vertices in the original graph. A clique is a subgraph in which every two vertices are connected to each other. For example, two connected vertices form a clique of size 2, a triangle is a clique of size 3, etc. Comment. The name comes from real cliques, like cliques in high school { when everyone within each clique plays with each other (but others are often excluded). What is the clique problem. Now, we can formulate the problem: • given: a graph and a natural number k; • find: a subgraph of the given graph which is a clique of size k (or generate a message that there is no such subgraph). How we will prove that the clique problem is NP-complete. We will prove this result by showing how to reduce 3-SAT to the clique problem. To describe this reduction, as usual, we will need three algorithms: • the algorithm U1(x) that transforms a 3-CNF formula x into a graph 0 x = U1(x); 0 0 0 • the algorithm U2(y ) that transforms the clique y in a graph x = U1(x) 0 into the satisfying vector y = U2(y ) for the original 3-CNF formula x; and • the algorithm U3(y) that transforms a satisfying vector y for the 3-CNF 0 0 formula x into a clique y = U3(y) of given size in the graph x = U1(x).
    [Show full text]