Skip to content

feat(search/csp): cherry-pick student deliverables from PR #484 + #523 - #528

Merged
jsboige merged 1 commit into
mainfrom
fix/student-prs-cherry-pick
Apr 24, 2026
Merged

jsboige merged 1 commit into
mainfrom
fix/student-prs-cherry-pick

Conversation

@jsboige

@jsboige jsboige commented Apr 24, 2026

Copy link
Copy Markdown
Owner

Summary

Cherry-picks useful content from two student PRs that became non-mergeable via standard flow:

Per user directive (2026-04-24): assume students delivered acceptable work, recover value instead of rejecting. Students have moved on to other courses; blocking on rebase asks is no longer constructive.

What was cherry-picked

CSP-1-Fundamentals.ipynb (PR #484)

9 cells extracted and added as annex "Rendus etudiant EPITA 2026" before navigation footer:

  • Cell: Exercice 1 header + 4-Reines backtracking with MRV/LCV (~3 KB)
  • Cell: draw_queens visualization
  • Cell: Exercice 2 MRV comparison
  • Cell: Exercice 3 SEND+MORE=MONEY (python-constraint)
  • Cell: Exercice 4 Sudoku 4x4 solver (~3 KB)

Original PR had +3718/-3299 noise from JSON indent reformat (2→4 spaces). Cherry-pick via Python script with explicit cell selection avoided all that noise — diff is now just the 10 meaningful inserted cells.

CSP-7-Soft.ipynb (PR #523)

2 cells extracted and added as annex "Rendus etudiants EPITA 2026":

  • Cell: Exercice 3 Nurse Scheduling equitable (CP-SAT with fairness_weight parameter)
  • Cell: Exercice 4 Hierarchical CSP (class with MANDATORY/STRONG/WEAK levels)

Mehdi+Oceane's other 2 cells (Menu Planning Fuzzy, Voyage Weighted) omitted — redundant with current pedagogical examples that were introduced by recycling #473.

Why annex rather than integration

Attribution

Co-authored commits with student names preserved for traceability.

Test plan

  • Notebook validate: 0 errors for both files
  • Papermill execute CSP-1 and CSP-7 (optional, cells are self-contained annexes)
  • Visual inspection of inserted cells after merge

Co-Authored-By: Valerian Pichot (EPITA, PR #484)
Co-Authored-By: Mehdi Robardet (EPITA, PR #523)
Co-Authored-By: Oceane Xiang (EPITA, PR #523)

#523)

Cherry-picks useful content from two student PRs that became non-mergeable
via standard flow (rebase obstacles, students moved on to other courses).
Per user directive: assume students delivered acceptable work, recover
value instead of rejecting.

CSP-1-Fundamentals.ipynb (PR #484, Valerian Pichot, solo):
- Annex "Rendus etudiant EPITA 2026" with 9 cells
- Exercice 1: 4-Reines with manual backtracking + MRV/LCV implementation
- Exercice 2: MRV comparison (with/without)
- Exercice 3: SEND+MORE=MONEY (python-constraint library)
- Exercice 4: Sudoku 4x4 CSP solver (complete)
- Cells preserved as-is (Valerian's style, type annotations, logic)
- Exercise numbering uses Valerian's original labeling
- Inserted before navigation footer to preserve pedagogical structure

CSP-7-Soft.ipynb (PR #523, Mehdi Robardet / Oceane Xiang):
- Annex "Rendus etudiants EPITA 2026" with 2 cells
- Exercice 3: Nurse Scheduling equitable (CP-SAT with fairness_weight)
- Exercice 4: Hierarchical CSP class (MANDATORY/STRONG/WEAK levels)
- Two other student cells (Menu Planning Fuzzy, Voyage Weighted) omitted:
  redundant with current pedagogical examples in main notebook

Both student branches are stale vs current main (CSP-1 MRV reconstruction
by #340, CSP-7 recycling by #473). Student solutions don't match current
exercise statements but remain valid alternative approaches documented
for reference. Branches NOT merged; only content extracted via Python
script with explicit cell selection (avoiding the 3719/-3299 JSON
reformat noise in #484).

Co-Authored-By: Valerian Pichot (EPITA, PR #484)
Co-Authored-By: Mehdi Robardet (EPITA, PR #523)
Co-Authored-By: Oceane Xiang (EPITA, PR #523)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@jsboige
jsboige merged commit 8b11bb1 into main Apr 24, 2026
1 check passed
@jsboige
jsboige deleted the fix/student-prs-cherry-pick branch April 24, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant