2022-06-10 16:53:16 +02:00
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
# NOTE:
|
|
|
|
# Diese Datei enthält Angaben für konkrete Fälle
|
|
|
|
# für die zu demonstrierenden Algorithmen.
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
# Beispiele für Seminarwoche 2 (Blatt 1)
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2022-06-10 16:04:30 +02:00
|
|
|
- name: TARJAN
|
2022-06-10 16:05:15 +02:00
|
|
|
nodes: [a,b,c]
|
|
|
|
edges: [[a, c], [c, a], [b, c]]
|
|
|
|
- name: TARJAN
|
|
|
|
nodes: [1, 2, 3, 4, 5, 6, 7, 8]
|
2022-06-10 16:04:30 +02:00
|
|
|
edges: [
|
2022-06-10 16:53:16 +02:00
|
|
|
[1, 2],
|
|
|
|
[1, 3],
|
|
|
|
[2, 4],
|
|
|
|
[2, 5],
|
|
|
|
[3, 5],
|
|
|
|
[3, 6],
|
|
|
|
[3, 8],
|
|
|
|
[4, 5],
|
|
|
|
[4, 7],
|
|
|
|
[5, 1],
|
|
|
|
[5, 8],
|
|
|
|
[6, 8],
|
|
|
|
[7, 8],
|
|
|
|
[8, 6],
|
2022-06-10 16:04:30 +02:00
|
|
|
]
|
2022-06-10 16:53:16 +02:00
|
|
|
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
# Beispiele für Seminarwoche 9 (Blatt 8)
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2022-06-10 11:50:59 +02:00
|
|
|
- name: TSP
|
2022-06-10 16:04:30 +02:00
|
|
|
dist: &ref_dist [
|
2022-06-10 12:11:14 +02:00
|
|
|
[0, 7, 4, 3],
|
|
|
|
[7, 0, 5, 6],
|
|
|
|
[2, 5, 0, 5],
|
|
|
|
[2, 7, 4, 0],
|
|
|
|
]
|
2022-06-10 11:50:59 +02:00
|
|
|
optimise: MIN
|
2022-06-10 16:04:30 +02:00
|
|
|
- name: TSP
|
|
|
|
dist: *ref_dist
|
|
|
|
optimise: MAX
|
2022-06-10 16:53:16 +02:00
|
|
|
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2022-06-10 12:40:55 +02:00
|
|
|
# Beispiele für Seminarwoche 10 (Blatt 9)
|
2022-06-10 16:53:16 +02:00
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2022-06-10 12:08:31 +02:00
|
|
|
- name: HIRSCHBERG
|
2022-06-10 11:50:59 +02:00
|
|
|
word1: 'happily ever after'
|
|
|
|
word2: 'apples'
|
2022-06-14 01:34:44 +02:00
|
|
|
once: false
|
2022-06-10 12:08:31 +02:00
|
|
|
- name: HIRSCHBERG
|
2022-06-10 11:50:59 +02:00
|
|
|
word1: 'happily'
|
|
|
|
word2: 'applses'
|
2022-06-10 12:08:31 +02:00
|
|
|
once: false
|
|
|
|
- name: HIRSCHBERG
|
|
|
|
word1: 'happily ever, lol'
|
|
|
|
word2: 'apple'
|
|
|
|
once: false
|
|
|
|
- name: HIRSCHBERG
|
|
|
|
word1: 'ACGAAG'
|
|
|
|
word2: 'AGAT'
|
|
|
|
once: false
|
|
|
|
- name: HIRSCHBERG
|
|
|
|
word1: 'ANSTRENGEN'
|
|
|
|
word2: 'ANSPANNEN'
|
|
|
|
once: false
|
2022-06-14 01:34:44 +02:00
|
|
|
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
# Beispiele für Seminarwoche 11 (Blatt 10)
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2022-06-15 15:54:52 +02:00
|
|
|
- name: RUCKSACK
|
2022-06-14 01:34:44 +02:00
|
|
|
algorithm: GREEDY
|
2022-06-15 15:54:52 +02:00
|
|
|
allow-fractional: true
|
|
|
|
# allow-fractional: false
|
2022-06-14 14:40:02 +02:00
|
|
|
max-cost: 10
|
2022-06-14 10:09:50 +02:00
|
|
|
items: [a, b, c, d, e]
|
2022-06-14 14:40:02 +02:00
|
|
|
costs:
|
2022-06-14 01:34:44 +02:00
|
|
|
[3, 4, 5, 2, 1]
|
|
|
|
values:
|
|
|
|
[8, 7, 8, 3, 2]
|
2022-06-15 15:54:52 +02:00
|
|
|
- name: RUCKSACK
|
|
|
|
algorithm: BRANCH-AND-BOUND
|
|
|
|
max-cost: 10
|
|
|
|
items: [a, b, c, d, e]
|
2022-06-20 16:49:46 +02:00
|
|
|
costs: [3, 4, 5, 2, 1]
|
|
|
|
values: [8, 7, 8, 3, 2]
|
2022-06-15 15:54:52 +02:00
|
|
|
- name: RUCKSACK
|
2022-06-14 01:34:44 +02:00
|
|
|
algorithm: BRANCH-AND-BOUND
|
2022-06-15 15:54:52 +02:00
|
|
|
max-cost: 460
|
|
|
|
items: [
|
|
|
|
'Lakritze',
|
|
|
|
'Esspapier',
|
|
|
|
'Gummibärchen',
|
|
|
|
'Schokolade',
|
|
|
|
'Apfelringe',
|
|
|
|
]
|
2022-06-20 16:49:46 +02:00
|
|
|
costs: [220, 80, 140, 90, 100]
|
|
|
|
values: [100, 10, 70, 80, 100]
|
2022-06-14 01:34:44 +02:00
|
|
|
- name: RUCKSACK
|
|
|
|
algorithm: BRANCH-AND-BOUND
|
2022-06-14 14:40:02 +02:00
|
|
|
max-cost: 90
|
2022-06-14 01:34:44 +02:00
|
|
|
items: [
|
|
|
|
'Sonnenblumenkerne',
|
|
|
|
'Buchweizen',
|
|
|
|
'Rote Beete',
|
|
|
|
'Hirse',
|
|
|
|
'Sellerie',
|
|
|
|
]
|
2022-06-20 16:49:46 +02:00
|
|
|
costs: [30, 10, 50, 10, 80]
|
|
|
|
values: [17, 14, 17, 5, 25]
|
|
|
|
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
# Beispiele für Seminarwoche 12
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
- name: EUKLID
|
|
|
|
numbers:
|
|
|
|
- 2017
|
|
|
|
- 58
|
|
|
|
- name: POLLARD-RHO
|
|
|
|
number: 534767
|
2022-06-20 17:24:37 +02:00
|
|
|
x-init: 5
|