-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update BinarySearch, Shuffle, AdjacencyGraph, and others
- Loading branch information
1 parent
a52fc47
commit 2b0d469
Showing
11 changed files
with
501 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# structure Shuffle | ||
|
||
```sml | ||
val shuffle: 'a Seq.t -> int -> 'a Seq.t | ||
``` | ||
|
||
`shuffle s seed` produces a pseudorandom permutation of `s` based on the | ||
random seed `seed`. | ||
|
||
For a particular seed, it will always produce | ||
the same result. Any two shuffles (using two different seeds) are independent. | ||
E.g. `shuffle s seed` is independent of `shuffle s (seed+1)`. | ||
|
||
Linear work and polylogarithmic span. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.