Question

algorithm TRUE OR FALSE       TRUE OR FALSE    Optimal substructure applies to alloptimization problems.  ...

algorithm

TRUE OR FALSE

      TRUE OR FALSE   

Optimal substructure applies to alloptimization problems.  

  TRUE OR FALSE   

For the same problem, there might be different greedy algorithms each optimizes a different measure on its way to a solutions.

     TRUE OR FALSE

Computing the nth Fibonacci number using dynamic programming with bottom-upiterations takes O(n) while it takes O(n2) to compute it using the top-down approach.

TRUE OR FALSE

Every computational problem on input size n can be solved by an algorithm with running time polynomial in n.

   TRUE OR FALSE

If any NP-complete problem can be solved in polynomial time, then NP =P.

   TRUE OR FALSE   

Both DP and greedy apply to optimization problems and will always lead to an optimal solution.

     TRUE OR FALSE

NP-Completeness applies directly not to optimization problems but to decision problems in which the answer is simply yes or no.

      TRUE OR FALSE   

No polynomial-time algorithm is known for any NPhard problem.

      TRUE OR FALSE   

Dijkstra’s algorithm solves multiple source shortest path problem.

     TRUE OR FALSE   

Floyed-Warshal is NPhard .

      TRUE OR FALSE

The greedy choice of activity selector is based on picking the activity earliest start time.

      TRUE OR FALSE

Many optimization problems can be stated as decision problems with the property that the decision problem can be solved in polynomial time iff the optimization problem can be solved in polynomial time.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

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.

Add a comment
Know the answer?
Add Answer to:
algorithm TRUE OR FALSE       TRUE OR FALSE    Optimal substructure applies to alloptimization problems.  ...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • True or False: If an NP-complete problem can be solved in cubic time, then all NP...

    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...

    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...

    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...

    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...

    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...

    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...

    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...

    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...

  • Decrease-by-Half Algorithm We can solve the same problem using a decrease-by-half algorithm. This...

    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...

    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...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT