forked from liuxinyu95/AlgoXY
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AVL tree latex: figures of 4 cases added.
- Loading branch information
1 parent
a213188
commit ee70ffc
Showing
8 changed files
with
345 additions
and
3 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,53 @@ | ||
digraph G{ | ||
node[shape=circle] | ||
ay[label="y", style=filled, fillcolor=white, fontcolor=black]; | ||
ax[label="x", style=filled, fillcolor=white, fontcolor=black]; | ||
aA[label="A", style=filled, color=white]; | ||
nilaAl[label="", style=invis]; | ||
nilaAr[label="", style=invis]; | ||
nilaAm[label="", style=invis]; | ||
aA->nilaAl[style=invis]; | ||
aA->nilaAm[style=invis]; | ||
aA->nilaAr[style=invis]; | ||
{rank=same nilaAl->nilaAm->nilaAr[style=invis]} | ||
aB[label="B", style=filled, color=white]; | ||
nilaBl[label="", style=invis]; | ||
nilaBr[label="", style=invis]; | ||
nilaBm[label="", style=invis]; | ||
aB->nilaBl[style=invis]; | ||
aB->nilaBm[style=invis]; | ||
aB->nilaBr[style=invis]; | ||
{rank=same nilaBl->nilaBm->nilaBr[style=invis]} | ||
nilaxm[label="", style=invis]; | ||
ax->aA | ||
ax->nilaxm[style=invis]; | ||
ax->aB | ||
{rank=same aA->nilaxm->aB[style=invis]} | ||
az[label="z", style=filled, fillcolor=white, fontcolor=black]; | ||
aC[label="C", style=filled, color=white]; | ||
nilaCl[label="", style=invis]; | ||
nilaCr[label="", style=invis]; | ||
nilaCm[label="", style=invis]; | ||
aC->nilaCl[style=invis]; | ||
aC->nilaCm[style=invis]; | ||
aC->nilaCr[style=invis]; | ||
{rank=same nilaCl->nilaCm->nilaCr[style=invis]} | ||
aD[label="D", style=filled, color=white]; | ||
nilaDl[label="", style=invis]; | ||
nilaDr[label="", style=invis]; | ||
nilaDm[label="", style=invis]; | ||
aD->nilaDl[style=invis]; | ||
aD->nilaDm[style=invis]; | ||
aD->nilaDr[style=invis]; | ||
{rank=same nilaDl->nilaDm->nilaDr[style=invis]} | ||
nilazm[label="", style=invis]; | ||
az->aC | ||
az->nilazm[style=invis]; | ||
az->aD | ||
{rank=same aC->nilazm->aD[style=invis]} | ||
nilaym[label="", style=invis]; | ||
ay->ax | ||
ay->nilaym[style=invis]; | ||
ay->az | ||
{rank=same ax->nilaym->az[style=invis]} | ||
} |
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,53 @@ | ||
digraph G{ | ||
node[shape=circle] | ||
az[label="z", style=filled, fillcolor=white, fontcolor=black]; | ||
ay[label="y", style=filled, fillcolor=white, fontcolor=black]; | ||
ax[label="x", style=filled, fillcolor=white, fontcolor=black]; | ||
aA[label="A", style=filled, color=white]; | ||
nilaAl[label="", style=invis]; | ||
nilaAr[label="", style=invis]; | ||
nilaAm[label="", style=invis]; | ||
aA->nilaAl[style=invis]; | ||
aA->nilaAm[style=invis]; | ||
aA->nilaAr[style=invis]; | ||
{rank=same nilaAl->nilaAm->nilaAr[style=invis]} | ||
aB[label="B", style=filled, color=white]; | ||
nilaBl[label="", style=invis]; | ||
nilaBr[label="", style=invis]; | ||
nilaBm[label="", style=invis]; | ||
aB->nilaBl[style=invis]; | ||
aB->nilaBm[style=invis]; | ||
aB->nilaBr[style=invis]; | ||
{rank=same nilaBl->nilaBm->nilaBr[style=invis]} | ||
nilaxm[label="", style=invis]; | ||
ax->aA | ||
ax->nilaxm[style=invis]; | ||
ax->aB | ||
{rank=same aA->nilaxm->aB[style=invis]} | ||
aC[label="C", style=filled, color=white]; | ||
nilaCl[label="", style=invis]; | ||
nilaCr[label="", style=invis]; | ||
nilaCm[label="", style=invis]; | ||
aC->nilaCl[style=invis]; | ||
aC->nilaCm[style=invis]; | ||
aC->nilaCr[style=invis]; | ||
{rank=same nilaCl->nilaCm->nilaCr[style=invis]} | ||
nilaym[label="", style=invis]; | ||
ay->ax | ||
ay->nilaym[style=invis]; | ||
ay->aC | ||
{rank=same ax->nilaym->aC[style=invis]} | ||
aD[label="D", style=filled, color=white]; | ||
nilaDl[label="", style=invis]; | ||
nilaDr[label="", style=invis]; | ||
nilaDm[label="", style=invis]; | ||
aD->nilaDl[style=invis]; | ||
aD->nilaDm[style=invis]; | ||
aD->nilaDr[style=invis]; | ||
{rank=same nilaDl->nilaDm->nilaDr[style=invis]} | ||
nilazm[label="", style=invis]; | ||
az->ay | ||
az->nilazm[style=invis]; | ||
az->aD | ||
{rank=same ay->nilazm->aD[style=invis]} | ||
} |
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,53 @@ | ||
digraph G{ | ||
node[shape=circle] | ||
az[label="z", style=filled, fillcolor=white, fontcolor=black]; | ||
ax[label="x", style=filled, fillcolor=white, fontcolor=black]; | ||
aA[label="A", style=filled, color=white]; | ||
nilaAl[label="", style=invis]; | ||
nilaAr[label="", style=invis]; | ||
nilaAm[label="", style=invis]; | ||
aA->nilaAl[style=invis]; | ||
aA->nilaAm[style=invis]; | ||
aA->nilaAr[style=invis]; | ||
{rank=same nilaAl->nilaAm->nilaAr[style=invis]} | ||
ay[label="y", style=filled, fillcolor=white, fontcolor=black]; | ||
aB[label="B", style=filled, color=white]; | ||
nilaBl[label="", style=invis]; | ||
nilaBr[label="", style=invis]; | ||
nilaBm[label="", style=invis]; | ||
aB->nilaBl[style=invis]; | ||
aB->nilaBm[style=invis]; | ||
aB->nilaBr[style=invis]; | ||
{rank=same nilaBl->nilaBm->nilaBr[style=invis]} | ||
aC[label="C", style=filled, color=white]; | ||
nilaCl[label="", style=invis]; | ||
nilaCr[label="", style=invis]; | ||
nilaCm[label="", style=invis]; | ||
aC->nilaCl[style=invis]; | ||
aC->nilaCm[style=invis]; | ||
aC->nilaCr[style=invis]; | ||
{rank=same nilaCl->nilaCm->nilaCr[style=invis]} | ||
nilaym[label="", style=invis]; | ||
ay->aB | ||
ay->nilaym[style=invis]; | ||
ay->aC | ||
{rank=same aB->nilaym->aC[style=invis]} | ||
nilaxm[label="", style=invis]; | ||
ax->aA | ||
ax->nilaxm[style=invis]; | ||
ax->ay | ||
{rank=same aA->nilaxm->ay[style=invis]} | ||
aD[label="D", style=filled, color=white]; | ||
nilaDl[label="", style=invis]; | ||
nilaDr[label="", style=invis]; | ||
nilaDm[label="", style=invis]; | ||
aD->nilaDl[style=invis]; | ||
aD->nilaDm[style=invis]; | ||
aD->nilaDr[style=invis]; | ||
{rank=same nilaDl->nilaDm->nilaDr[style=invis]} | ||
nilazm[label="", style=invis]; | ||
az->ax | ||
az->nilazm[style=invis]; | ||
az->aD | ||
{rank=same ax->nilazm->aD[style=invis]} | ||
} |
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,53 @@ | ||
digraph G{ | ||
node[shape=circle] | ||
ax[label="x", style=filled, fillcolor=white, fontcolor=black]; | ||
aA[label="A", style=filled, color=white]; | ||
nilaAl[label="", style=invis]; | ||
nilaAr[label="", style=invis]; | ||
nilaAm[label="", style=invis]; | ||
aA->nilaAl[style=invis]; | ||
aA->nilaAm[style=invis]; | ||
aA->nilaAr[style=invis]; | ||
{rank=same nilaAl->nilaAm->nilaAr[style=invis]} | ||
az[label="z", style=filled, fillcolor=white, fontcolor=black]; | ||
ay[label="y", style=filled, fillcolor=white, fontcolor=black]; | ||
aB[label="B", style=filled, color=white]; | ||
nilaBl[label="", style=invis]; | ||
nilaBr[label="", style=invis]; | ||
nilaBm[label="", style=invis]; | ||
aB->nilaBl[style=invis]; | ||
aB->nilaBm[style=invis]; | ||
aB->nilaBr[style=invis]; | ||
{rank=same nilaBl->nilaBm->nilaBr[style=invis]} | ||
aC[label="C", style=filled, color=white]; | ||
nilaCl[label="", style=invis]; | ||
nilaCr[label="", style=invis]; | ||
nilaCm[label="", style=invis]; | ||
aC->nilaCl[style=invis]; | ||
aC->nilaCm[style=invis]; | ||
aC->nilaCr[style=invis]; | ||
{rank=same nilaCl->nilaCm->nilaCr[style=invis]} | ||
nilaym[label="", style=invis]; | ||
ay->aB | ||
ay->nilaym[style=invis]; | ||
ay->aC | ||
{rank=same aB->nilaym->aC[style=invis]} | ||
aD[label="D", style=filled, color=white]; | ||
nilaDl[label="", style=invis]; | ||
nilaDr[label="", style=invis]; | ||
nilaDm[label="", style=invis]; | ||
aD->nilaDl[style=invis]; | ||
aD->nilaDm[style=invis]; | ||
aD->nilaDr[style=invis]; | ||
{rank=same nilaDl->nilaDm->nilaDr[style=invis]} | ||
nilazm[label="", style=invis]; | ||
az->ay | ||
az->nilazm[style=invis]; | ||
az->aD | ||
{rank=same ay->nilazm->aD[style=invis]} | ||
nilaxm[label="", style=invis]; | ||
ax->aA | ||
ax->nilaxm[style=invis]; | ||
ax->az | ||
{rank=same aA->nilaxm->az[style=invis]} | ||
} |
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,53 @@ | ||
digraph G{ | ||
node[shape=circle] | ||
ax[label="x", style=filled, fillcolor=white, fontcolor=black]; | ||
aA[label="A", style=filled, color=white]; | ||
nilaAl[label="", style=invis]; | ||
nilaAr[label="", style=invis]; | ||
nilaAm[label="", style=invis]; | ||
aA->nilaAl[style=invis]; | ||
aA->nilaAm[style=invis]; | ||
aA->nilaAr[style=invis]; | ||
{rank=same nilaAl->nilaAm->nilaAr[style=invis]} | ||
ay[label="y", style=filled, fillcolor=white, fontcolor=black]; | ||
aB[label="B", style=filled, color=white]; | ||
nilaBl[label="", style=invis]; | ||
nilaBr[label="", style=invis]; | ||
nilaBm[label="", style=invis]; | ||
aB->nilaBl[style=invis]; | ||
aB->nilaBm[style=invis]; | ||
aB->nilaBr[style=invis]; | ||
{rank=same nilaBl->nilaBm->nilaBr[style=invis]} | ||
az[label="z", style=filled, fillcolor=white, fontcolor=black]; | ||
aC[label="C", style=filled, color=white]; | ||
nilaCl[label="", style=invis]; | ||
nilaCr[label="", style=invis]; | ||
nilaCm[label="", style=invis]; | ||
aC->nilaCl[style=invis]; | ||
aC->nilaCm[style=invis]; | ||
aC->nilaCr[style=invis]; | ||
{rank=same nilaCl->nilaCm->nilaCr[style=invis]} | ||
aD[label="D", style=filled, color=white]; | ||
nilaDl[label="", style=invis]; | ||
nilaDr[label="", style=invis]; | ||
nilaDm[label="", style=invis]; | ||
aD->nilaDl[style=invis]; | ||
aD->nilaDm[style=invis]; | ||
aD->nilaDr[style=invis]; | ||
{rank=same nilaDl->nilaDm->nilaDr[style=invis]} | ||
nilazm[label="", style=invis]; | ||
az->aC | ||
az->nilazm[style=invis]; | ||
az->aD | ||
{rank=same aC->nilazm->aD[style=invis]} | ||
nilaym[label="", style=invis]; | ||
ay->aB | ||
ay->nilaym[style=invis]; | ||
ay->az | ||
{rank=same aB->nilaym->az[style=invis]} | ||
nilaxm[label="", style=invis]; | ||
ax->aA | ||
ax->nilaxm[style=invis]; | ||
ax->ay | ||
{rank=same aA->nilaxm->ay[style=invis]} | ||
} |
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