subject

We define the language SUBSET-SUM as follows: SUBSET-SUM = 3 (S, k) : There exists S* C S such that s=k SES*
That is, (S, k) E SUBSET-SUM iff there is a subset of numbers in S such that their sum is
A student would like to prove that the language SUBSET-SUM is NP-Hard by using VERTEX-COVER. They have provided the following reduction but have given no analysis to justify their reduction. As a result, they will gain no points for the analysis of the reduc- tion, but it is still possible that their reduction is correct. As a grader, you need to analyze this reduction to provide the appropriate number of points. The reduction works as follows:
f on input (G= (V, E), k):
(1) Fix an arbitrary ordering on the edges of the graph G.
(2) For each vertex v, generate a number with El + 1 digits where the last digit is 1, and the ith digit is 1 if the įth edge is incident to v. All other digits in this number are 0.
(3) For the ith edge, generate a number with E +1 digits where the ith digit of this number is 1. All other digits in this number are 0.
(4) Output all of the numbers generated and the number 2...2k El copies of 2, followed by k noting that all of the numbers are represented in base k +1.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
What operating system is a smartphone most likely to use? 1.bsd 2.mac os x 3.symbian 4.linux
Answers: 1
question
Computers and Technology, 22.06.2019 20:40
Assume that there is a 4% rate of disk drive failure in a year. a. if all your computer data is stored on a hard disk drive with a copy stored on a second hard disk drive, what is the probability that during a year, you can avoid catastrophe with at least one working drive? b. if copies of all your computer data are stored on three independent hard disk drives, what is the probability that during a year, you can avoid catastrophe with at least one working drive?
Answers: 1
question
Computers and Technology, 23.06.2019 01:00
Petrică, tânăr licean în clasa a ix-a, a primit în dar de la părinţii săi un cont bancar pentru micile sale cheltuieli curente. el este pasionat de internet banking şi îşi verifică cu grijă toate tranzacţiile efectuate. pentru creşterea securităţii tranzacţiilor online, banca îi furnizează lui petrică un număr pe care el va trebui să îl modifice, obţinând un număr tan – număr de autentificare a tranzacţiei (transaction authentication number). regula de obţinere a numărului tan este următoarea: se formează cel mai mic număr par din toate cifrele numărului furnizat de bancă. cerinţă cunoscând numărul n furnizat de bancă, să se determine numărul tan obţinut de petrică. date de intrare fişierul tan.in conţine pe prima linie numărul natural n cu semnificaţia din enunţ. date de ieşire fişierul de ieşire tan.out va conţine o singură linie pe care va fi scris numărul tan cerut. restricţii • 0 < n < 18*1018 • n are cel puţin o cifră pară • numărul tan obţinut nu poate conţine zerouri nesemnificative
Answers: 2
question
Computers and Technology, 24.06.2019 00:20
Describe a data structures that supports the stack push and pop operations and a third operation findmin, which returns the smallest element in the data structure, all in o(1) worst-case time.
Answers: 2
You know the right answer?
We define the language SUBSET-SUM as follows: SUBSET-SUM = 3 (S, k) : There exists S* C S such that...
Questions
question
Mathematics, 14.04.2020 21:05
question
Mathematics, 14.04.2020 21:06
Questions on the website: 13722359