A&DS S04E13. Approximation Algorithms

  Рет қаралды 1,597

Pavel Mavrin

Pavel Mavrin

2 жыл бұрын

Algorithms and data structures. Semester 4. Lecture 13
In the thirteenth lecture, we discussed approximation algorithms, that is, algorithms that find not an exact solution, but some solution that approximates the optimal one with some accuracy.
ITMO University, 2022

Пікірлер: 9
@omaraljarrah5089
@omaraljarrah5089 2 жыл бұрын
We would love if we had more of the English content, your content, the way you explain algorithms is just exceptional! Thanks for your hard work!
@nirajandata
@nirajandata 2 жыл бұрын
thanks
@madhukiranattivilli2321
@madhukiranattivilli2321 Жыл бұрын
Hi Pavel, Dynamic Programming solution to knapsack is O(nW) where n is total # of objects and W is knapsack weight Why is this NP-Complete? It it because, when the knapsack weight W is a very big number, there will be problems with insufficient memory or run time would be very long, even though we would eventually get the solution (represented by "Complete" part in NP-Complete)?
@pavelmavrin
@pavelmavrin Жыл бұрын
Hi! I discuss NP-completeness in this lesson kzbin.info/www/bejne/sJuleWSen6mIf9U In simple words, NP-complete problem is the problem that is proved to be harder than any problem in NP class. So if we solve any NP-complete problem in polynomial time, we will be able to solve all NP problems. For the knapsack problem, O(nW) is not a polynomial time because W is not the size of the input.
@madhukiranattivilli2321
@madhukiranattivilli2321 Жыл бұрын
@@pavelmavrin Ok, I'll watching the video again. Thankyou!
@madhukiranattivilli2321
@madhukiranattivilli2321 Жыл бұрын
@@pavelmavrin Understood the difference between "input -- not useful in Big-O computation" vs "size of input" Input value can grow rapidly, size of input need not. I hope I'm making sense!
@madhukiranattivilli2321
@madhukiranattivilli2321 Жыл бұрын
Hi Pavel, knapsack approx sol ANS = max(Cgreedy, Cmax) >= 0.5 * OPT When it is 0.5OPT solution, why are you calling it 2OPT solution? When you spoke about TSP approx soln, ANS
@pavelmavrin
@pavelmavrin Жыл бұрын
Here I call a solution K-optimal if it differs from the optimal one by no more than K times.
@madhukiranattivilli2321
@madhukiranattivilli2321 Жыл бұрын
@@pavelmavrin Ok, understood K-optimal not 2-optimal
A&DS S04E14. Parallel Algorithms
1:34:18
Pavel Mavrin
Рет қаралды 9 М.
A&DS S04E12. Fast Fourier Transform
1:14:18
Pavel Mavrin
Рет қаралды 1,9 М.
Khóa ly biệt
01:00
Đào Nguyễn Ánh - Hữu Hưng
Рет қаралды 20 МЛН
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 7 МЛН
Tom & Jerry !! 😂😂
00:59
Tibo InShape
Рет қаралды 58 МЛН
Please be kind🙏
00:34
ISSEI / いっせい
Рет қаралды 184 МЛН
A&DS S04E08. Global Minimum Cuts
1:32:15
Pavel Mavrin
Рет қаралды 925
АиСД S02E08. Scapegoat Tree, List Order Maintenance
1:02:44
Pavel Mavrin
Рет қаралды 1,3 М.
Dijkstra's Algorithm - Computerphile
10:43
Computerphile
Рет қаралды 1,3 МЛН
Every Chess Tip Explained In 10 Minutes
9:42
Chess Thugs
Рет қаралды 6 М.
Bill Gates Reveals Superhuman AI Prediction
57:18
Next Big Idea Club
Рет қаралды 41 М.
Erdős-Woods Numbers - Numberphile
14:12
Numberphile
Рет қаралды 73 М.
I Played Fabiano Caruana
12:03
Anna Cramling
Рет қаралды 243 М.
A&DS S04E11. Basic Cryptography Algorithms
1:20:40
Pavel Mavrin
Рет қаралды 1,3 М.
Khóa ly biệt
01:00
Đào Nguyễn Ánh - Hữu Hưng
Рет қаралды 20 МЛН