a. Define what f(n) = O(g(n)) means. Define the complexity classes P and NP. [5 marks]...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
a. Define what f(n) = O(g(n)) means. Define the complexity classes P and NP. [5 marks] b. We proved in class that the problem CLIQUE is NP-complete by con- structing a polynomial reduction from 3SAT to CLIQUE. i Given an input formula = (PVQVR) A (PV-Q) A (-Q V R) construct a graph G that is the result of applying the reduction. [4 marks] ii In the reduction, what is the size k of the clique that G has if y is satisfiable? [2 marks] iii Does G indeed have a clique of size k (that you computed in the previous subquestion)? If yes, show it on the graph (list the nodes and edges) and explain how you can construct a satisfying assignment to from it. If G does not have a clique of size k, explain why does not have a satisfying assignment. [4 marks] a. Define what f(n) = O(g(n)) means. Define the complexity classes P and NP. [5 marks] b. We proved in class that the problem CLIQUE is NP-complete by con- structing a polynomial reduction from 3SAT to CLIQUE. i Given an input formula = (PVQVR) A (PV-Q) A (-Q V R) construct a graph G that is the result of applying the reduction. [4 marks] ii In the reduction, what is the size k of the clique that G has if y is satisfiable? [2 marks] iii Does G indeed have a clique of size k (that you computed in the previous subquestion)? If yes, show it on the graph (list the nodes and edges) and explain how you can construct a satisfying assignment to from it. If G does not have a clique of size k, explain why does not have a satisfying assignment. [4 marks]
Expert Answer:
Related Book For
Discrete and Combinatorial Mathematics An Applied Introduction
ISBN: 978-0201726343
5th edition
Authors: Ralph P. Grimaldi
Posted Date:
Students also viewed these programming questions
-
Turn on your function generator. It defaults to a sine wave with a frequency of 1000 Hz. Set the Frequency to 90.000 Hz by using the decade buttons (below ?100.000?) to change to the tens place and...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
s1 educated (SSE) student for every three public school educated (PSE) students. Reasoning that students are not very dissimilar from threads, he suggests the following entry and exit routines be...
-
A marketing researcher wants to estimate the mean amount spent per year ($) on a web site by membership member shoppers. Suppose a random sample of 150 membership member shoppers who recently made a...
-
The given functions all have limits of 0 as x 0+. For each function, find how close the input must be to 0 for the output to be a) within 0.1 of 0, and b) within 0.01 of the limit. Sketch a graph of...
-
What is the sum of the 40 th and 60 th percentiles of a normal distribution with a mean = 8.2 and variance = 9.5? The study is expanded to include 50 medical interns, of whom 11 report having had an...
-
Evaluate an investment using all four methods (Learning Objectives 2, 4) Water World is considering purchasing a water park in San Antonio, Texas, for $1,850,000. The new facility will generate...
-
Der Dutchman is a large family- style restaurant chain located throughout the Midwest in Amish communities. Currently Der Dutchman makes its own biscuits. Customers love these biscuits; they are...
-
Suppose you throw an object from a great height, so that it reaches very nearly terminal velocity by time it hits the ground, By measuring the impact, you determine that this terminal velocity is -49...
-
Wayland Custom Woodworking is a firm that manufactures custom cabinets and woodwork for business and residential customers. Students will have the opportunity to establish payroll records and to...
-
3. The compound dihydroxyacetone (DHA) is used in "sunless" tanning lotions, which darkens the skin by reacting with the amino acids in the outer surface of the skin. A typical drugstore lotion...
-
Inflation is inevitable and the fluctuation of currency is something we can always count on.Discuss a situation where you were affected by the time value of money. What is meant by the power of time?...
-
A 30-year-old worker plans to retire at age 65. He believes that $800,000 is needed to retire comfortably. How much should be deposited now at 8% compounded monthly to meet the $800,000 < retirement...
-
Calculate the weighted average number of shares in the following situation: A company had 6 9 , 0 0 0 shares of common stock outstanding at January 1 , 2 0 2 4 . During 2 0 2 4 , an additional 1 4 ,...
-
Examine Gap's external environment. Where can you identify new opportunities? Should Gap venture into new markets? If yes, which markets should they consider, and how should they approach them? Are...
-
2. Show the calculation to find the and of a binomial variable whose probability of success if 0.7 with a total number of attempts of 40.
-
Osborn Company is a manufacturer that uses job order costing. The following accounts appeared in Osborn's ledger as December 31. RAW MATERIAL WORKIN PROCESS BEG 21,000 BEG 17,000 P DM ? ? DL ? P OH ?...
-
Ann hires a nanny to watch her two children while she works at a local hospital. She pays the 19 year-old nanny $125 per week for 48 weeks during the current year. a. What is the employers portion of...
-
(a) If p, q are primitive statements, prove that (p q) (p (p q)) (p q). (b) Write the dual of the logical equivalence in part (a).
-
Let n ¥ 2. If xl is a Boolean variable for all 1 ¤ i ¤ n, prove that (X + x ++ x,) = x, I,
-
(a) Determine the chromatic polynomials for the graphs in Fig. 11.92 (b) Find x (G) for each graph. (c) If five colors are available, in how many ways can the vertices of each graph be properly...
-
(Compute average return and sigma) Go to the Principles of Finance with Excel companion website for Chapter 7, where youll find data on annual stock prices for Kellogg for 19952014. Compute the...
-
appraise the five major leadership theories and their leadership styles?
-
(Annual return calculation) At the end of 2009, an investor bought 10,000 shares of Yakuna Corporation for 456 each in the Japanese stock market ( is the symbol for Japanese yen). At that time, one...
Study smarter with the SolutionInn App