שאלה פתוחהq-ab29c4f1429a
נוסח השאלה
נגדיר אלגוריתם קירוב בשם לבעיית האופטימיזציה של :
קלט: , כאשר ו-.
לכל :
-
אם יכול להיכנס לתא האחרון שפתחנו, הכנס אותו.
-
אחרת, פתח תא חדש והכנס אליו את .
-
הוכיחו כי זמן הריצה של האלגוריתם פולינומי.
-
הוכיחו כי בכל חלוקה לתאים שמחזיר האלגוריתם, סכום האיברים שהוכנסו לשני תאים סמוכים גדול מ-.
-
הוכיחו כי האלגוריתם משיג יחס קירוב .
נוסח מטלה שנבדק אנושית.
Exact provenance
Appearances by source document
Each card is a genuinely distinct file. Printed versions inside one PDF stay in that card and do not inflate the sitting count.
Assignment
2026 A
2026א_05_תרגיל_5.md
Question 3Page 1Human reviewed
The pages this was written from
1 page
These pages were chosen by word overlap between the text here and the page's transcription — nobody has verified them. Treat them as a lead to check, not a citation.
Lecture 13 · page 3המשך בעיות NP קשותShared wordsהאופטימיזציה · Fit · לתא · האיברים · אליו · האחרון