Skip to content

Commit

Permalink
quadratic range merging
Browse files Browse the repository at this point in the history
  • Loading branch information
fluentfuture committed Jun 9, 2024
1 parent d8afa05 commit 320e24c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ V getValue() {
* BiStream.from(rangeMap).collect(toImmutableRangeMap(String::concat));
* }</pre>
*
* <p>To avoid quadratic range split, it's generally safer to arrange the input ranges
* <p>To avoid quadratic range merging, it's generally safer to arrange the input ranges
* longer range first.
*
* @since 8.1
Expand All @@ -574,7 +574,7 @@ V getValue() {
* BiStream.from(rangeMap).collect(toRangeMap(TreeRangeMap::create, String::concat));
* }</pre>
*
* <p>To avoid quadratic range split, it's generally safer to arrange the input ranges
* <p>To avoid quadratic range merging, it's generally safer to arrange the input ranges
* longer range first.
*
* @since 8.1
Expand Down Expand Up @@ -615,7 +615,7 @@ V getValue() {
* .collect(toImmutableMap());
* }</pre>
*
* <p>To avoid quadratic range split, it's generally safer to arrange the input ranges
* <p>To avoid quadratic range merging, it's generally safer to arrange the input ranges
* longer range first.
*
* @since 8.1
Expand All @@ -640,7 +640,7 @@ V getValue() {
* .toMap();
* }</pre>
*
* <p>To avoid quadratic range split, it's generally safer to arrange the input ranges
* <p>To avoid quadratic range merging, it's generally safer to arrange the input ranges
* longer range first.
*
* @since 8.1
Expand Down Expand Up @@ -674,7 +674,7 @@ V getValue() {
* while the worst-case runtime of a naive implementation that recombines the mapped values on
* each re-mapping will be O(n^2).
*
* <p>Also, to avoid quadratic range split, it's generally safer to arrange the input ranges
* <p>Also, to avoid quadratic range merging, it's generally safer to arrange the input ranges
* longer range first.
*
* @since 8.1
Expand Down

0 comments on commit 320e24c

Please sign in to comment.