Skip to content
Snippets Groups Projects
Commit bc57047c authored by jo2-holdsworth's avatar jo2-holdsworth
Browse files

README FIX

parent 354c9fe2
No related branches found
No related tags found
No related merge requests found
......@@ -63,8 +63,8 @@ ___
___
### Task 4: Expanding capability.
* As we designed the binary tree to be universal adding to the tree is very easy in theory we just add a few more characters to the array in **initTree()** in breadth first order. However, when we dive into it we quickly see that the array becomes very long. This isn't efficient todo by hand. I have created a programme todo it for us.
* ***inserter.py** is designed to take an heap string and add values to that heap. It also will add new layers by adding the correct amount of Null characters. This is what the tree looks like in heap form now.![image](src/screenshot22.PNG). The function to insert is very simple and the next worksheet builds on a similar method so it will be very useful. ![image](src/screenshot23.PNG) When we run our new characters to be inserted ![image](src/screenshot24.PNG) we get ![image](src/screenshot25.PNG).
* ***morse.py** To simple update the binary tree with new values we just add it to **initTree()** like this. ![image](src/screenshot26.PNG)
* ***inserter.py*** is designed to take an heap string and add values to that heap. It also will add new layers by adding the correct amount of Null characters. This is what the tree looks like in heap form now.![image](src/screenshot22.PNG). The function to insert is very simple and the next worksheet builds on a similar method so it will be very useful. ![image](src/screenshot23.PNG) When we run our new characters to be inserted ![image](src/screenshot24.PNG) we get ![image](src/screenshot25.PNG).
* ***morse.py*** To simple update the binary tree with new values we just add it to **initTree()** like this. ![image](src/screenshot26.PNG)
* ***unittesting*** after testing some of the new values we get no unexpected errors. ![image](src/screenshot27.PNG)
## Getting Started
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment