log
graph
tags
bookmarks
branches
changeset
browse
file
diff
comparison
annotate
file log
raw
help
Mercurial
>
hg
>
problem6
log optim.py @ 19:
6015c8cfe502
draft
Find changesets by keywords (author, files, the commit message), revision number or hash, or
revset expression
.
less
more
|
(0)
tip
age
author
description
2015-03-17
Jordi Gutiérrez Hermoso
showplan: new debug function
draft
2015-03-11
Jordi Gutiérrez Hermoso
main: enable some debug output
draft
2015-03-11
Jordi Gutiérrez Hermoso
main: use CLI args to select the algorithm to use
draft
2015-03-11
Jordi Gutiérrez Hermoso
main: use args to get input filename instead of hardwiring it
draft
2015-03-11
Jordi Gutiérrez Hermoso
greedy: new greedy algorithm, works reasonably well
draft
2015-03-11
Jordi Gutiérrez Hermoso
process_options: new function to handle CLI args
draft
2015-03-11
Jordi Gutiérrez Hermoso
maint: keep line lengths to 80 chars
draft
2015-03-11
Jordi Gutiérrez Hermoso
final_capital: first sell the machine before checking balance to buy (bug)
draft
2015-03-11
Jordi Gutiérrez Hermoso
brute_force: new function, O(2^N) solution (exponential time)
draft
2015-03-11
Jordi Gutiérrez Hermoso
final_capital: consider as invalid plans that buy more than one machine per day
draft
2015-03-11
Jordi Gutiérrez Hermoso
parseinput: skip impossible and unprofitable machines
draft
2015-03-11
Jordi Gutiérrez Hermoso
final_capital: new function
draft
2015-03-11
Jordi Gutiérrez Hermoso
parseinput: also save the maximum possible profit for each machine
draft
2015-03-10
Jordi Gutiérrez Hermoso
parseinput: replace lists with namedtuplese
draft
2015-03-10
Jordi Gutiérrez Hermoso
parseinput: new function
draft
less
more
|
(0)
tip