The Wayback Machine - https://web.archive.org/web/20240727095813/https://www.geeksforgeeks.org/prove-that-kite-is-np-complete/
Open In App

Prove that KITE is NP-Complete

Last Updated : 06 Oct, 2022
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report

Prerequisite: NP-Completeness, NP Class, Clique

Problem: Given an undirected graph G = (V, E) and an integer K, determine if there is a kite subgraph of size 2K which consists of a clique of size K with a K-size tail. Demonstrate that it is an NP-Complete.

Explanation:

A KITE is a graph on an even number of vertices, say 2k, in which k of the vertices form a clique and the remaining K vertices are connected in a “tail” that consists of a path joined to one of the vertices of the clique. 

Given KITE problem can be described as follows:

  • Input –  Graph G (V, E) having an even number of vertices (say 2K).
  • Output –  K of the vertices form a clique and remaining K vertices are connected in a “tail” that consists of a path joined to one of the
    vertices of the clique. 

To prove a problem NP Complete , there are two steps involved:

  1. Prove given problem belong to NP Class
  2. All other problems in the NP class can be polynomial time reducible to that problem. (This is the prove of being NP-Hard)

Now it is not possible to reduce every NP problem to another NP problem to prove it’s NP completeness all the time. That’s why we show that any known NP complete problem is reducible to that problem in polynomial time.

Proof:

1. KITE belongs to NP Class:

A problem is said to be in NP Class if the solution for the problem can be verified in polynomial time.

Given an input G = (V, E) and a set size of K, the answer is K of the vertices form a clique and the remaining K vertices are connected in a “tail” that consists of a path joined to one of the
vertices of the clique. There are two steps to verify the solution for this problem:

  • Verify K of the vertices form a clique: For all pairs of vertices (x, y) such that (x, y) ∈ E. This would take O(n2) time  K â‰Ī n where n is the number of vertices.
  • Verify remaining K vertices are connected in a “tail” that consists of a path joined to one of the vertices of the clique. This would take O(n2) time  K â‰Ī n where n is the number of vertices.

So, verification of a solution for KITE at most O(n2) which is polynomial in nature so KITE belongs to NP Class.

2. KITE is an NP-Hard problem:

Now we need to show KIte is at least as hard as a known NP-Complete Problem by reduction technique.

Here the known problem is going to be the Clique problem which is already known to be NP-complete which is explained in Proof of Clique being the NP-Complete.

We are going to show the reduction from Clique -> KITE.

Input Conversion: We need to convert the input from Clique to input to KITE

Clique takes an input graph G = (V, E) and parameter K for set size. To convert the input from Clique to KITE:

Clique graph G = (V,E) with 3 vertices and 2 edges

  • We will create a graph such as  G’(V’, E’) which is going to be the copy of the given graph G = (V, E). 
  • We are going to add |V| the vertices from G to G’ such that V’ = 2|V|.
  • Now add an edge between newly added vertices with its original vertex in G’.

Kite graph G’= (V’, E’), where all newly added vertices are connected with its original vertices using pink line

So, Graph G’ is going to be the graph that will have an even number of vertices, say K = 2V, in which V of the vertices form a clique and the remaining V vertices are connected in a “tail” that consists of a path joined to one of the vertices of the clique. 

The creation of a new graph is going to take O(|n| + |m|) time. Adding new vertices is going to take O(n),  where n is the number of vertices and m are the edges. Thus the input conversion can be done in polynomial time.

Output Conversion: We need to convert the solution from KITE to the solution for the Clique problem.

  • KITE solution yields 2 sets of vertices where V of the vertices form a clique and the remaining V vertices are connected in a “tail” that consists of a path joined to one of the vertices of the clique. 
  • This solution can be transformed into a Clique problem solution by removing the edges between the vertices which are connected in a tail from graph G'(V’, E’), resulting in Graph G(V, E), with Clique for G equal to Clique for G‘ because there is no edge difference between G and G’.

The vertices can be dropped in O(n) where n is the number of vertices, thus the output conversion can be done in polynomial time.

Correctness: Now we need to prove the correctness of the claim which says that 

“Solution of KITE exits if a solution to the Clique problem exists”.

  • Forward implication: For a kite graph having two different sets of vertices where V of the vertices form a clique and the remaining V vertices are connected in a “tail” that consists of a path joined to one of the vertices of the clique. We can drop the vertices connected with thetail and the resulting graph would be a clique.
  • Reverse implication:  For a graph G= (V, E) having a clique, then a kite graph also exists by adding all the vertices |V| and connecting them with a tail which will also form a clique

So, this means KITE Graph has a solution ↔  Clique Graph has a solution.

Conclusion:

Hence, we can conclude that KITE is an NP-complete problem.  


Previous Article
Next Article

Similar Reads

Prove that a problem consisting of Clique and Independent Set is NP Complete
Prerequisite: NP-Completeness, NP Class, Clique, Independent Set Problem: Given an undirected graph G = (V, E) and an integer K, determine if a clique of size K as well as an independent set (IS) of size K, exists. Demonstrate that it is an NP Complete. Explanation: A Clique is a subgraph of a graph in which all of the vertices are connected, formi
6 min read
Prove that Sparse Graph is NP-Complete
Prerequisite: NP-Completeness, NP Class, Sparse Graph, Independent Set Problem: Given graph G = (V, E) and two integers a and b. A set of a number of vertices of G such that there are at most b edges between them is known as the Sparse Subgraph of graph G. Explanation: Sparse Subgraph problem is defined as follows: Input: An undirected graph G = (V
4 min read
Prove Max2SAT is NP-Complete by Generalisation
Prerequisites: NP-Completeness, NP Class, Max2SAT, 3SAT Problem: Given a 2-CNF (Conjunctive Normal Form) Boolean expression (with m clauses, n variables) and an integer k, Decide if there is an assignment satisfying at least ‘k’ of the total clauses and then prove Max2SAT belongs to NP-Complete Explanation: In the maximum-2-satisfiability problem (
4 min read
Prove that Dense Subgraph is NP Complete by Generalisation
Prerequisites: NP-Completeness, NP Class, Dense Subgraph  Problem: Given graph G = (V, E) and two integers a and b. A set of a number of vertices of G such that there are at least b edges between them is known as the Dense Subgraph of graph G. Explanation: To prove the Dense Subgraph problem as NP-completeness by generalization, we are going to pro
3 min read
Program to calculate the area of Kite
Kite is something like rhombus but in Kite, the adjacent sides are equal and diagonals are generally not equal. Method 1: When both the diagonals are givenIf diagonals d1 and d2 are given of the kite, then the area of a kite is half of product of both the diagonals i.e. [Tex]\ Area = \frac{ d1 * d2 } {2} \[/Tex] Example: Input: d1 = 4, d2 = 6 Outpu
5 min read
Area of Circumcircle and Incircle of a Right Kite
Given two positive integers A and B representing the sides of the right kite, the task is to find the area of the circumcircle and incircle of a right kite. A right kite is a kite that can be inscribed in a circle with two opposite angles are at right angles. The line of symmetry of the kite is also the diameter of the circumcircle of the kite. It
6 min read
Prove that the square of any natural number is either a multiple of 3 or one more than a multiple of 3
Number System is a system of representing numbers using symbols and digits in a certain manner. One can think of it as a Grammar book in mathematics. As soon as one hear this word "Number" 1,2,3,.... get pop in one's head immediately. Number System defines their value, operations to perform, and other properties. Each number is unique. It has many
6 min read
Prove that atleast one of three consecutive even numbers is divisible by 6
Given three consecutive even numbers. Prove mathematically that atleast one of them is divisible by 6. Examples: Input : {2, 4, 6} Output : 6 is divisible by 6 Input : {8, 10, 12} Output : 12 is divisible by 6 Question Source : Amazon interview experience | Set 383 (On-Campus for Internship) If you see the any three consecutive numbers, you can fig
2 min read
Prove that Every Cyclic Group is an Abelian Group
Groups, subgroups, rings, fields, integral domains, graphs, trees, cut sets, etc are one of the most important concepts in Discrete Mathematics. In this article, we are going to discuss and prove that every cyclic group is an abelian group. Before proceeding to the proof let's first understand some basic terminologies like what is an abelian group,
2 min read
Linked complete binary tree & its creation
A complete binary tree is a binary tree where each level 'l' except the last has 2^l nodes and the nodes at the last level are all left-aligned. Complete binary trees are mainly used in heap-based data structures. The nodes in the complete binary tree are inserted from left to right in one level at a time. If a level is full, the node is inserted i
15 min read
Article Tags :
three90RightbarBannerImg