שאלה פתוחהq-21d78d84610d
נוסח השאלה
בשאלה זו נוכיח כי בעיית שראינו בשיעור היא -שלמה. הקלט הוא סדרת מספרים ומספר טבעי . השאלה היא האם ניתן לחלק את המספרים ל- תאים כך שסכום המספרים בכל תא הוא לכל היותר .
-
הוכיחו כי .
-
נגדיר את האלגוריתם הבא.
קלט: סדרת מספרים טבעיים בייצוג עשרוני.
- נחשב ונסמן את הסכום ב-.
- אם קיים כך ש-, נחזיר את סדרת המספרים ואת המספר .
- אחרת נחזיר את סדרת המספרים ואת המספר .
הוכיחו כי האלגוריתם מתאר רדוקציית זמן פולינומי מ- ל-, והסיקו כי .
נוסח מטלה שנבדק אנושית.
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א_04_תרגיל_4.md
Question 5Page 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 2המשך בעיות NP קשותShared wordsBin · Packing · נחשב · Partition · תא · מספרים