Part I: Introductory Materials Introduction to Graph Theory Dr. Nagiza F. Samatova Department of Computer Science North Carolina State University and Computer.

Slides:



Advertisements
Similar presentations
Analysis of Algorithms
Advertisements

NP-Hard Nattee Niparnan.
22C:19 Discrete Math Graphs Fall 2010 Sukumar Ghosh.
22C:19 Discrete Math Graphs Fall 2014 Sukumar Ghosh.
Reducibility Class of problems A can be reduced to the class of problems B Take any instance of problem A Show how you can construct an instance of problem.
What is Intractable? Some problems seem too hard to solve efficiently. Question 1: Does an efficient algorithm exist?  An O(a ) algorithm, where a > 1,
1 The TSP : Approximation and Hardness of Approximation All exact science is dominated by the idea of approximation. -- Bertrand Russell ( )
NP-complete and NP-hard problems Transitivity of polynomial-time many-one reductions Concept of Completeness and hardness for a complexity class Definition.
The Theory of NP-Completeness
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
Introduction to Approximation Algorithms Lecture 12: Mar 1.
Complexity Theory CSE 331 Section 2 James Daly. Reminders Project 4 is out Due Friday Dynamic programming project Homework 6 is out Due next week (on.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
The Theory of NP-Completeness
NP-Complete Problems Problems in Computer Science are classified into
Analysis of Algorithms CS 477/677
P, NP, and NP-Complete Suzan Köknar-Tezel.
The Maximum Independent Set Problem Sarah Bleiler DIMACS REU 2005 Advisor: Dr. Vadim Lozin, RUTCOR.
22C:19 Discrete Math Graphs Spring 2014 Sukumar Ghosh.
GRAPH Learning Outcomes Students should be able to:
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Programming & Data Structures
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
MCS312: NP-completeness and Approximation Algorithms
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
Nattee Niparnan. Easy & Hard Problem What is “difficulty” of problem? Difficult for computer scientist to derive algorithm for the problem? Difficult.
Complexity Classes (Ch. 34) The class P: class of problems that can be solved in time that is polynomial in the size of the input, n. if input size is.
GRAPHS CSE, POSTECH. Chapter 16 covers the following topics Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component,
Lecture 30. P, NP and NP Complete Problems 1. Recap Data compression is a technique to compress the data represented either in text, audio or image form.
Tonga Institute of Higher Education Design and Analysis of Algorithms IT 254 Lecture 8: Complexity Theory.
1 ELEC692 Fall 2004 Lecture 1b ELEC692 Lecture 1a Introduction to graph theory and algorithm.
1 CS104 : Discrete Structures Chapter V Graph Theory.
Approximation Algorithms
CSC 172 P, NP, Etc. “Computer Science is a science of abstraction – creating the right model for thinking about a problem and devising the appropriate.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
CSE 024: Design & Analysis of Algorithms Chapter 9: NP Completeness Sedgewick Chp:40 David Luebke’s Course Notes / University of Virginia, Computer Science.
CSCI 3160 Design and Analysis of Algorithms Tutorial 10 Chengyu Lin.
Data Structures & Algorithms Graphs
Unit 9: Coping with NP-Completeness
NP-COMPLETE PROBLEMS. Admin  Two more assignments…  No office hours on tomorrow.
Lecture 6 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
NP-Completeness (Nondeterministic Polynomial Completeness) Sushanth Sivaram Vallath & Z. Joseph.
Homework #5 Due: October 31, 2000 Christine Kang Graph Concepts and Algorithms.
GRAPHS. Graph Graph terminology: vertex, edge, adjacent, incident, degree, cycle, path, connected component, spanning tree Types of graphs: undirected,
Donghyun (David) Kim Department of Mathematics and Computer Science North Carolina Central University 1 Chapter 7 Time Complexity Some slides are in courtesy.
Lecture 25 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
Algorithms for hard problems Introduction Juris Viksna, 2015.
NPC.
NP Completeness Piyush Kumar. Today Reductions Proving Lower Bounds revisited Decision and Optimization Problems SAT and 3-SAT P Vs NP Dealing with NP-Complete.
Introduction to Graph Theory By: Arun Kumar (Asst. Professor) (Asst. Professor)
Introduction to NP Instructor: Neelima Gupta 1.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
1 P and NP. 2 Introduction The Traveling Salesperson problem and thousands of other problems are equally hard in the sense that if we had an efficient.
Algorithm Complexity By: Ashish Patel and Alex Golebiewski.
1 The Theory of NP-Completeness 2 Review: Finding lower bound by problem transformation Problem X reduces to problem Y (X  Y ) iff X can be solved by.
The NP class. NP-completeness Lecture2. The NP-class The NP class is a class that contains all the problems that can be decided by a Non-Deterministic.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
The NP class. NP-completeness
NP-completeness Ch.34.
Chapter 10 NP-Complete Problems.
EMIS 8373: Integer Programming
Hard Problems Introduction to NP
Algorithms for hard problems
Graph Theory and Algorithm 02
CS120 Graphs.
ICS 353: Design and Analysis of Algorithms
Graph Theory.
Computation Basics & NP-Completeness
Lecture 24 Vertex Cover and Hamiltonian Cycle
Presentation transcript:

Part I: Introductory Materials Introduction to Graph Theory Dr. Nagiza F. Samatova Department of Computer Science North Carolina State University and Computer Science and Mathematics Division Oak Ridge National Laboratory

2 Graphs Graph with 7 nodes and 16 edges Undirected Edges Nodes / VerticesDirected

3 Types of Graphs Undirected vs. Directed Attributed/Labeled (e.g., vertex, edge) vs. Unlabeled Weighted vs. Unweighted General vs. Bipartite (Multipartite) Trees (no cycles) Hypergraphs Simple vs. w/ loops vs. w/ multi-edges

4 Labeled Graphs and Induced Subgraphs Bold: A subgraph induced by vertices b, c and d Labeled graph w/ loops

Graph Isomorphism 5 Which graphs are isomorphic? (A)(B)(C) C

Graph Automorphism 6 Which graphs are automorphic? Automorphism is isomorphism that preserves the labels. (A)(B)(C) B

Vertex degree, in-degree, out-degree 77Directed head tail t h In-degree of the vertex is the number of in-coming edges Out-degree of the vertex is the number of out-going edges Degree of the vertex is the number of edges (both in- & out-degree)

8 Graph Representation and Formats Adjacency Matrix (vertex vs. vertex) Incidence Matrix (vertex vs. edge) Sparse vs. Dense Matrices DIMACS file format In R: igraph object

9 Adjacency Matrix Representation Representation is NOT unique. Algorithms can be order-sensitive. Src: “Introduction to Data Mining” by Kumar et al

Families of Graphs 10 Cliques Path and simple path Cycle Tree Connected graphs Read the book chapter for definitions and examples.

11 Complete Graph, or Clique Each pair of vertices is connected.Clique

12 The CLIQUE Problem Maximum Clique of Size 5 Clique Clique: a complete subgraph Maximal Clique Maximal Clique: a clique cannot be enlarged by adding any more vertices Maximum Clique Maximum Clique: the largest maximal clique in the graph

13 Does this graph contain a 4-clique? Indeed it does! But, if it had not, what evidence would have been needed?

14 Problem: Decision, Optimization or Search Problem Decision Optimization Search Formulate each version for the CLIQUE problem. (self-reduction) “Yes”-”No” Parameter k  max/min Actual solution Which problem is harder to solve? If we solve Decision problem, can we use it for the others? Enumeration All solutions

15 Refresher: Class P and Class NP Definition: P (NP) is the class of languages/problems that are decidable in polynomial time on a (non-)deterministic single-tape Turing machine. Class P ???? NP non-polynomial Non- deterministic polynomial Polynomially verifiable

16 PSPACE ∑ 2 P …… “forget about it” P vs. NP The Classic Complexity Theory View: P NP “easy” “hard” “About ten years ago some computer scientists came by and said they heard we have some really cool problems. They showed that the problems are NP-complete and went away!”

17 Classical Graph Theory Problems CSC505:Algorithms, CSC707 :Complexity Theory, CSC5??:Graph Theory Longest Path Maximum Clique Minimum Vertex Cover Hamiltonian Path/Cycle Traveling Salesman (TSP) Maximum Independent Set Minimum Dominating Set Graph/Subgraph Isomorphism Maximum Common Subgraph … NP-hard Problems

18 Graph Mining Problems CSC 422/522 and Our Book Clustering + Maximal Clique Enumeration Classification Association Rule Mining +Frequent Subgraph Mining Anomaly Detection Similarity/Dissimilarity/Distance Measures Graph-based Dimension Reduction Link Analysis … Many graph mining problems have to deal with classical graph problems as part of its data mining pipeline.

19 Dealing with Computational Intractability Exact Algorithms: –Small graph problems –Small parameters to graph problems –Special classes of graphs (e.g., bounded tree-width) Approximation Polynomial-Time Algorithms (O(n c )) –Guaranteed error-bar on the solution Heuristic Polynomial-Time Algorithms –No guarantee on the quality of the solution –Low degree polynomial solutions Our focus