algorithm
TRUE OR FALSE
|
1)
This statement is false.
Greedy omptimized problems might not have optimal substructure.
2)
This statement is false.
3)
This statement is false.
4)
This statement is true.
NOTE: As per Chegg policy I am allowed to answer specific number of questions (including sub-parts) on a single post. Kindly post the remaining questions separately and I will try to answer them. Sorry for the inconvenience caused.
algorithm TRUE OR FALSE TRUE OR FALSE Optimal substructure applies to alloptimization problems. ...
True or False: If an NP-complete problem can be solved in cubic time, then all NP complete problems can be solved in cubic time. Cubic = O(n^3). Explain why true or false. I think the answer is False but I'm not exactly sure why that is so if someone could explain.
3. (3 pts) Two well-known NP-complete problems are 3-SAT and TSP, the traveling salesman problem. The 2-SAT problem is a SAT variant in which each clause contains at most two literals. 2-SAT is known to have a polynomial-time algorithm. Is each of the following statements true or false? Justify your answer. a. 3-SAT sp TSP. b. If P NP, then 3-SAT Sp 2-SAT. C. If P NP, then no NP-complete problem can be solved in polynomial time.
All decision problems (i.e.language membership problems), which are verifiable in polynomial time by a deterministic Turing machine are called NP problems. Further, these problems can be solved by a non-deterministic Turing machine in a polynomial time and in exponential time by a deterministic Turing machine. Do we have a decision problem that is not verifiable by a deterministic Turing machine in polynomial time but decidable?
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...
C. 7. True/False Questions. (2 points each) a. Applying Horner's Rule, an n-degree polynomial can be evaluated at a given point using only n multiplications and n additions. b. Quick Sort and Merge Sort are comparison-based sorting algorithms. Heap Sort and Distribution Counting Sort are not comparison-based sorting algorithms. An AVL tree applies four types of rotations: RIGHT, LEFT, RIGHT-LEFT, and LEFT-RIGHT. d. When an AVL tree's left sub-tree is left-heavy, a LEFT rotation is needed. e. When an AVL...
ANAL UP ALUUm FINAL PART1 ouesnoN13 which ot the following is QUESTION14. Which of the following is not in P? E. Max Cut D. Minimum Spanning Tree C. Min Cut B. 2-SAT Linear Programming QUESTION15. How many NP problems did Karp include in his tree hierarchy? E. 31 D. 22 A. 1 QUESTION16. Which of the following is not one of Karp's original NP problems? C. Feedback Arc Set D. Feedback N Set E. Partition B. Node Cover Arc Cover...
State if each of the statements is true or false. Assume that n is a positive integer. Dijkstra’s single-source-shortest-paths algorithm relaxes edges without considering path costs. IoT technology is useful for remotely monitoring elderly people who are living alone. The average of the n positive integers ranging from 1 to n can be found in O(1) time. The average of the greatest and the least numbers among the given n numbers can be found in O(n) time. Optional toolboxes augment...
1. Fractional Knapsack Problem Algorithm Which best describes the tightest range of the number of items with only fractional inclusion (i.e. not entirely included or excluded) in the knapsack? (Let n denote the number of items for possible inclusion.) A) At least 0 items and at most n items B) At least 1 items and at most n items C) Exactly n items D) At least 0 items and at most n-1 items E) At least 1 items and at...
Convert the pseudocode into a C++ function Decrease-by-Half Algorithm We can solve the same problem using a decrease-by-half algorithm. This algorithm is based on the following ideas: In the base case, n 1 and the only possible solution is b 0, e 1 In the general case, divide V into a left and rnight half; then the maximum subarray can be in one of three places: o entirely in the left half; o entirely in the right half; or o...
Question 11 an assignment problem is a special type of transportation problem. True False Question 12 when formulating a linear programming problem on a spreadsheet, the data cells will show the optimal solution. True False Question 13 an example of a decision variable in a linear programming problem is profit maximization. True False Question 14 Predictive analytics is the process of using data to. C) determine the break-even point. D) solve linear programming problems. B) predict what will happen in...