Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit02bde94

Browse files
authored
Merge pull request#1477 from yousvf/patch-1
Update treap.md
2 parentsf28d1a2 +7c3273f commit02bde94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/data_structures/treap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Alternatively, insert can be done by splitting the initial treap on $X$ and doin
9292
<imgsrc="https://upload.wikimedia.org/wikipedia/commons/6/62/Treap_erase.svg"width="500px"/>
9393
</center>
9494

95-
Implementation of**Erase ($X$)** is also clear. First we descend in the tree (as in a regular binary search tree by $X$), looking for the element we want to delete. Once the node is found, we call**Merge** onit children and put the return value of the operation in the place of the element we're deleting.
95+
Implementation of**Erase ($X$)** is also clear. First we descend in the tree (as in a regular binary search tree by $X$), looking for the element we want to delete. Once the node is found, we call**Merge** onits children and put the return value of the operation in the place of the element we're deleting.
9696

9797
Alternatively, we can factor out the subtree holding $X$ with $2$ split operations and merge the remaining treaps (see the picture).
9898

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp