utility-function-extractor/packages/utility-tools/README.md
NunoSempere bb0108fb60 feat: Add utility tools
I'm hoping to have these be a separate package that are also used in the
website.
2022-06-15 23:04:46 -04:00

10 lines
550 B
Markdown

## Utility function processor
This package contains a series of utilities to work with the utility functions produced by [this utility function extractor](https://utility-function-extractor.quantifieduncertainty.org/openphil-2018-ai-risk)
### Merge sort
Given a list of elements and a list of utilitity comparisons, sort the list.
Gotcha: The list of elements has to be the same list, and in the same order, as that produced when initially doing the comparisons. This is because the merge-sort algorithm depends on the initial order of the list.