SCC.121 Algorithms and Complexity - P vs NP Introduction

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/22

flashcard set

Earn XP

Description and Tags

Flashcards covering the concepts of P vs NP, time complexity, and related problems from an introductory lecture.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

23 Terms

1
New cards

What type of problems were students requesting more practice questions for?

Time complexity problems

2
New cards

What does the acronym TSP stand for?

Travelling Salesperson Problem

3
New cards

What is the goal of the Travelling Salesperson Problem (TSP)?

To find the shortest route for a salesperson to visit all cities exactly once and return to the starting point.

4
New cards

What is the time complexity of a brute-force solution to the TSP?

O(n!), where n is the number of cities

5
New cards

List examples of growth rates of functions from slowest to fastest?

Constant, Logarithmic, Linear, N log N, Quadratic, N^2 log N, Cubic, Polynomial, Exponential, Factorial

6
New cards

What is the primary distinction between polynomial and super-polynomial functions?

Polynomial functions are bounded from above by n^c, while super-polynomial functions grow faster than any polynomial function.

7
New cards

Define 'intractable' in the context of algorithms.

A problem is called intractable if there is no efficient (polynomial-time) algorithm that solves it.

8
New cards

Define 'tractable' in the context of algorithms.

A problem is called tractable if there is an efficient (polynomial-time) algorithm that solves it.

9
New cards

Why are computer speed improvements alone not sufficient for inefficient algorithms?

The less efficient the algorithm, the less a faster computer can improve the size of a problem that can be solved in a fixed time. The jump in computational requirements happens very fast for exponential algorithms.

10
New cards

What is 'P' in the context of complexity theory?

Problems for which there exists a polynomial-time algorithm.

11
New cards

Give examples of problems that belong to the 'P' complexity class?

Binary Search, Linear Search, Breadth-First Search, Dijkstra’s Algorithm, Sorting Algorithms, Minimum Spanning Tree

12
New cards

What is 'EXP' in the context of complexity theory?

Problems for which there is an exponential-time algorithm.

13
New cards

What type of complexity is generally considered intractable?

Algorithms that are exponential or worse (such as factorial) are generally considered intractable.

14
New cards

List examples of problems with no known polynomial-time solution?

Traveling Salesperson (TSP), SAT, Knapsack, 3-coloring, Clique, Minesweeper, Sudoku, Monkey Puzzle

15
New cards

What is 'R' in the context of computational difficulty?

Problems solvable in finite time.

16
New cards

Why is factoring integers considered a computationally difficult problem?

Classical algorithms for factoring integers require exponential time in the worst case. Some widely used cryptographic algorithms, such as RSA, rely on it being a hard problem to solve as the numbers get bigger.

17
New cards

What is NP?

NP: decision problems that can be checked in polynomial time

18
New cards

Explain the P vs NP problem?

Can every problem whose solution can be quickly verified by a computer also be quickly solved by a computer? In other words, does P=NP?

19
New cards

What is the potential impact if it is proven that P = NP?

Decrypt current internet communication, revolutionize AI, faster computations, cure for cancer, etc.

20
New cards

What is the potential impact if it is proven that P ≠ NP?

Prove that for some questions there is no clever shortcut to find the right answer and understand more about computation

21
New cards

List some problems that involve searching and finding the 'needle in a haystack'?

Traveling salesperson (TSP), SAT, Knapsack, 3-coloring, Clique, Minesweeper, Sudoku, monkey puzzle, scheduling, protein folding

22
New cards

What is the Clay Mathematics Institute known for?

Offering $1,000,000 for the solution to each of the Seven Millennium Prize Problems, including P vs NP.

23
New cards

What can be done to address an intractable problem?

Use heuristics, solve problem approximately, use an exponential time algorithm, solve a different problem.