<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://algorist.com/algowiki_v2/index.php?action=history&amp;feed=atom&amp;title=TADM2E_3.8</id>
		<title>TADM2E 3.8 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://algorist.com/algowiki_v2/index.php?action=history&amp;feed=atom&amp;title=TADM2E_3.8"/>
		<link rel="alternate" type="text/html" href="https://algorist.com/algowiki_v2/index.php?title=TADM2E_3.8&amp;action=history"/>
		<updated>2026-05-01T02:47:30Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://algorist.com/algowiki_v2/index.php?title=TADM2E_3.8&amp;diff=560&amp;oldid=prev</id>
		<title>Justiny: Created page with &quot;Use a balanced tree structure where the nodes store the rank and the size of the left sub-tree. The rank can be calculated on insertion as follows:  1. Initialize rank to 1. 2...&quot;</title>
		<link rel="alternate" type="text/html" href="https://algorist.com/algowiki_v2/index.php?title=TADM2E_3.8&amp;diff=560&amp;oldid=prev"/>
				<updated>2018-07-22T00:21:45Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Use a balanced tree structure where the nodes store the rank and the size of the left sub-tree. The rank can be calculated on insertion as follows:  1. Initialize rank to 1. 2...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Use a balanced tree structure where the nodes store the rank and the size of the left sub-tree. The rank can be calculated on insertion as follows: &lt;br /&gt;
1. Initialize rank to 1.&lt;br /&gt;
2. Add the size of the left subtree plus one (for the visited parent) every time the right child of a node is visited.&lt;br /&gt;
3. Increment the size of the left subtree every time the left child of a node is visited.&lt;br /&gt;
''Insert(x, T)'' takes O(log n) as the height of the tree is log n.&lt;br /&gt;
''delete(x, T)'' takes O(log n) as the ranks and sizes can be recursively updated in O(log n) after the deletion.&lt;br /&gt;
''member(x, T)'' is a search on BSTand is O(log n)&lt;/div&gt;</summary>
		<author><name>Justiny</name></author>	</entry>

	</feed>