File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ import 'solution.dart';
14
14
/// possible states, so it isn't feasible to brute force. There are a few
15
15
/// techniques we use to avoid that:
16
16
///
17
- /// - All pieces default to being in state zero. Every piece is implemented
18
- /// such that that state has no line splits and zero cost. Thus, it tries
19
- /// solutions with a minimum number of line splits first.
17
+ /// - All pieces default to being in [State.initial] . Every piece is
18
+ /// implemented such that that state has no line splits (or only mandatory
19
+ /// ones) and zero cost. Thus, it tries solutions with a minimum number of
20
+ /// line splits first.
20
21
///
21
22
/// - Solutions are explored in priority order. We explore solutions with the
22
- /// fewest overflow characters and the lowest cost (in that order) first.
23
- /// This was, as soon as we find a solution with no overflow characters, we
24
- /// know it will be the best solution and can stop.
23
+ /// the lowest cost first. This way, as soon as we find a solution with no
24
+ /// overflow characters, we know it will be the best solution and can stop.
25
25
// TODO(perf): At some point, we probably also want to do memoization of
26
26
// previously formatted Piece subtrees.
27
27
class Solver {
You can’t perform that action at this time.
0 commit comments