Commit b8a890c
committed
Clarify N-Queens fitness function explanation
Expanded the explanation of the N-Queens problem and clarified the definition and maximization of the fitness function in the genetic algorithm. Improved the description to distinguish between minimizing attacks and maximizing non-attacking pairs, and added mathematical context for the fitness calculation.1 parent f73d367 commit b8a890c
File tree
2 files changed
+12
-3
lines changed- playgrounds
2 files changed
+12
-3
lines changedBinary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
603 | | - | |
| 603 | + | |
604 | 604 | | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
605 | 610 | | |
606 | 611 | | |
607 | 612 | | |
608 | 613 | | |
609 | | - | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
610 | 619 | | |
611 | 620 | | |
612 | 621 | | |
613 | 622 | | |
614 | 623 | | |
615 | 624 | | |
616 | | - | |
| 625 | + | |
617 | 626 | | |
618 | 627 | | |
619 | 628 | | |
| |||
0 commit comments