1. A graph is nothing but a connection of nodes. These connections can be in a loop or not. It is a non linear data structure. It consists of edges and nodes
2. A tree is a data structure in which a root have at most two children. It is non linear data structure.
3. B+ tree is extension of B tree. In this data can only be stored on the leaf nodes while internal nodes can only store the key values. The leaf nodes of a B+ tree are linked together in the form of a singly linked lists to make the search queries more efficient.
4. A problem is called if it is both NP and NP hard, where NP is the set of decision problems that can be verified in polynomial time.
5. A language which is not accepted by any turing machine. decision problem P is called “undecidable” if the language L of all yes instances to P is not decidable. Undecidable languages are not recursive languages, but sometimes, they may be recursively enumerable languages.
Question 1: (a) Give the formal definitions of the following: 1. A graph 2. A tree...
3. Given graph G = (V,E), prove that the following statements are equivalent. [Note: the following statements are equivalent definitions of a tree graph" 1) There exist exactly one path between any of two vertices u,vEV in the graph G 3. Given graph G = (V,E), prove that the following statements are equivalent. [Note: the following statements are equivalent definitions of a tree graph" 1) There exist exactly one path between any of two vertices u,vEV in the graph G
the definitions are below x is any input to the program 1. Show that Lacc is NP-Hard. * * * * Recall: NP = the class of efficiently verifiable languages. * The set of all languages that can be verified in polynomial time. * Examples: * MAZE = {(G,s,t): G is a graph. There is a path s->t in G}. * HAMCYCLE = {G:G is an undirected graph with a Hamiltonian Cycle} * COMPOSITES = {n EN:n= pq for some...
5. Chapter 22. Give the BFS(G.s) algorithm 6. Computing Complexities Chapter. What is the Hamiltonian Cycle Problem? Hamiltonian cycle problem 7. Computing Complexities Chapter. Define an NP-Complete problem. Do not give an example. Rather tell what it is. Be formal about the definition NP-Complete problems are in NP, the set of all decision probleus whose solutions can be verified in polynomial time 8. Computing Complexities Chapter. What is PSPACE? Set of all decision problems that can be by a turing...
Can someone explain how to get the time complexity for Prim's minimum spanning tree problem? 1. (4 pts) For the following weighted graph, find the minimum spanning tree: 15 10 0 2 10 20 5 3 4 25 15 15 10 6 20 1. (2 pts) What is the time complexity for Prim's minimum spanning tree problem? 1. (4 pts) For the following weighted graph, find the minimum spanning tree: 15 10 0 2 10 20 5 3 4 25...
Exercise 2 Given the following graph: a. Write the formal description of the graph, G=(V,E) b. Show the Adjacency Matrix representation C. Show the Adjacency List representation d. Calculate step by step the shortest paths from a e. Show the DFS tree/forest from a f. Show the BFS tree/forest from a g MST using Prim h. MST using Kruskal
Let G = (V, E) be a finite graph. We will use a few definitions for the statement of this problem. The Tutte polynomial is defined as the polynomial in 2 variables, 2 and y, given by: Definition 1 Tg(x,y) = (x - 1)*(A)-k(E)(y - 1)*(A)+|A1-1V1 ACE where for A CE, k(A) is the number of connected components of the graph (V, A). For this problem we will need the following definition: Definition 2 (Acyclic Graph) A graph is called...
The input to SPANNINGTREEWITHKLEAVES is a graph G and an integer K. The question asked by SPAN NINGTREEWITHKLEAVES is whether G has a spanning tree with exactly K leaves. Problem 3. Show that SPANNINGTREEWITIIKLEAVES is NP-complete. Hint: There is a simple polynomial time reduction from HAMILTONIANPATH to SPANNINGTREEWITHKLEAVES.
Show all work for full credit. PART A Graph Theorv). 01.a. Model the following problem into a graph coloring problem A local zoo wants to take visitors on animal feeding tours, and is considering the following tours: Tour 1 visits the monkeys, birds, and deer Tour 2 visits the elephants, deer and giraffes; Tour 3 visits the birds, reptiles and bears Tour 4 visits the kangaroos, monkeys and bears Tour 5 visits birds, kangaroos and pandas; Monday, Wednesday and Friday...
2. Consider the following problem: Input: graph G, integer k Question: is it possible to partition vertices of G into k disjoint independent sets? Is this problem polynomial or NP-complete? Explain your answer
give the definitions of the following in details 1. Immobility 2. Disuse syndrome 3. Deconditioned