ts-ds / Trace
Interface: Trace<T>
Defined in: trace/trace.ts:49
Everything that happened while an algorithm sorted an array.
Type Parameters
| Type Parameter |
|---|
T |
Properties
input
ts
input: T[];Defined in: trace/trace.ts:51
A copy of the array before sorting.
output
ts
output: T[];Defined in: trace/trace.ts:53
The sorted array.
stats
ts
stats: TraceStats;Defined in: trace/trace.ts:56
steps
ts
steps: Step<T>[];Defined in: trace/trace.ts:55
Steps in the order they happened. Replay them on input to get output.