woche12 > master: code py - assets

This commit is contained in:
RD 2022-06-20 16:49:46 +02:00
parent f1200dfc25
commit f6401f0dfc
2 changed files with 30 additions and 21 deletions

View File

@ -89,10 +89,8 @@
algorithm: BRANCH-AND-BOUND algorithm: BRANCH-AND-BOUND
max-cost: 10 max-cost: 10
items: [a, b, c, d, e] items: [a, b, c, d, e]
costs: costs: [3, 4, 5, 2, 1]
[3, 4, 5, 2, 1] values: [8, 7, 8, 3, 2]
values:
[8, 7, 8, 3, 2]
- name: RUCKSACK - name: RUCKSACK
algorithm: BRANCH-AND-BOUND algorithm: BRANCH-AND-BOUND
max-cost: 460 max-cost: 460
@ -103,10 +101,8 @@
'Schokolade', 'Schokolade',
'Apfelringe', 'Apfelringe',
] ]
costs: costs: [220, 80, 140, 90, 100]
[220, 80, 140, 90, 100] values: [100, 10, 70, 80, 100]
values:
[100, 10, 70, 80, 100]
- name: RUCKSACK - name: RUCKSACK
algorithm: BRANCH-AND-BOUND algorithm: BRANCH-AND-BOUND
max-cost: 90 max-cost: 90
@ -117,7 +113,16 @@
'Hirse', 'Hirse',
'Sellerie', 'Sellerie',
] ]
costs: costs: [30, 10, 50, 10, 80]
[30, 10, 50, 10, 80] values: [17, 14, 17, 5, 25]
values:
[17, 14, 17, 5, 25] # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Beispiele für Seminarwoche 12
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- name: EUKLID
numbers:
- 2017
- 58
- name: POLLARD-RHO
number: 534767

View File

@ -26,13 +26,17 @@ options:
verbose: verbose:
- COSTS - COSTS
- MOVES - MOVES
# show: [] show: []
show: # show:
# - ATOMS # - ATOMS
- TREE # - TREE
rucksack: rucksack:
verbose: true verbose: *ref_verbose
# show: [] show: []
show: # show:
- ALL-WEIGHTS # - ALL-WEIGHTS
- ALL-SUMS # - ALL-SUMS
euklid:
verbose: *ref_verbose
pollard-rho:
verbose: *ref_verbose