Search Tree Latex

by Mariusz   Last Updated September 11, 2019 14:01 PM

Hello i am trying to create a search Tree in Latex which looks like this: enter image description here

I tried using the tikz library and had this code there


every node/.style = {minimum width = 2em, draw, circle}, ] \node {1} child {node {2} child {node {5}}} child {node {3} child {node {6}}} child {node {4} child {node {7}}}; \end{tikzpicture}

The mistake is probably visible as i do not create the correct picture instead i have a normal tree. How do i make it in such a way that i have the Tree on the picture ? So how do i increase the length of the lines between the nodes ? How do i make it look more or less like a triagle ? Double circle on top etc ?

Tags : latex

Related Questions

Vim disable the display of accents in latex file

Updated June 17, 2015 00:00 AM

LatexToWordEquation application

Updated April 06, 2017 15:01 PM

Navigate file tree in sharelatex with vim

Updated July 13, 2017 12:01 PM

Align the page list of Acronym ( Latex)

Updated October 04, 2018 17:01 PM

Various bullets within the same equation in Latex

Updated April 01, 2019 07:01 AM