Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="https://github.com/zminot"><img src="https://avatars.githubusercontent.com/u/43081846?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Zachary Minot</b></sub></a><br /><a href="https://github.com/csvistool/visualization-tool/commits?author=zminot" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/1ntEgr8"><img src="https://avatars.githubusercontent.com/u/40111357?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Elton Leander Pinto</b></sub></a><br /><a href="https://github.com/csvistool/visualization-tool/commits?author=1ntEgr8" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/yotam-k"><img src="https://avatars.githubusercontent.com/u/31946987?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yotam Kanny</b></sub></a><br /><a href="https://github.com/csvistool/visualization-tool/issues?q=author%3Ayotam-k" title="Bug reports">🐛</a> <a href="https://github.com/csvistool/visualization-tool/commits?author=yotam-k" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/ohcnivek"><img src="https://avatars.githubusercontent.com/u/64056046?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kevin Cho</b></sub></a><br /><a href="https://github.com/csvistool/visualization-tool/issues?q=author%3Aohcnivek" title="Bug reports">🐛</a> <a href="https://github.com/csvistool/visualization-tool/commits?author=ohcnivek" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/ohcnivek"><img src="https://avatars.githubusercontent.com/u/64056046?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kevin Cho</b></sub></a><br /><a href="https://github.com/csvistool/visualization-tool/issues?q=author%3Aohcnivek" title="Bug reports">🐛</a> <a href="https://github.com/csvistool/visualization-tool/commits?author=ohcnivek" title="Code"><💻/a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/akoap"><img src="https://avatars.githubusercontent.com/u/35209362?v=4" width="100px;" alt=""/><br /><sub><b>Akshay Patil</b></sub></a><br /><a href="https://github.com/csvistool/visualization-tool/commits?author=akoap" title="Code">💻</a></td>
Expand All @@ -55,6 +55,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="https://github.com/m-skaan"><img src="https://avatars.githubusercontent.com/u/93020882?v=4" width="100px;" alt=""/><br /><sub><b>Muskaan Gupta</b></sub></a><br /> <a href="https://github.com/csvistool/visualization-tool/commits?author=m-skaan" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/VineethSendilraj"><img src="https://avatars.githubusercontent.com/u/66220022?v=4" width="100px;" alt=""/><br /><sub><b>Vineeth Sendilraj</b></sub></a><br /> <a href="https://github.com/csvistool/visualization-tool/commits?author=VineethSendilraj" title="Code">💻</a> <a href="https://github.com/csvistool/visualization-tool/commits?author=VineethSendilraj" title="Design">🎨</a></td>
<td align="center"><a href="https://github.com/PureTrippH"><img src="https://avatars.githubusercontent.com/u/20043396?v=4" width="100px;" alt=""/><br /><sub><b>Tripp Hanley</b></sub></a><br /> <a href="https://github.com/csvistool/visualization-tool/commits?author=PureTrippH" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/amchelapurath2023"><img src="https://avatars.githubusercontent.com/u/74162023?v=4" width="100px;" alt=""/><br /><sub><b>Anshul Chelapurath </b></sub></a><br /><a href="https://github.com/csvistool/visualization-tool/commits?author=amchelapurath2023" title="Code">💻</a></td>
</tr>
</table>

Expand Down
10 changes: 5 additions & 5 deletions src/AlgoList.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ export const algoList = [
'Dijkstra',
'Prim',
'Kruskal',
'DisjointSet',
'LCS',
'---',
'DP & Extras',
'CreateGraph',
'DisjointSet',
'SplayTree',
'Floyd',
'DropSort',
Expand Down Expand Up @@ -328,10 +328,6 @@ export const algoFilter = [
id: 'Kruskal',
category: 'Graph Algorithms',
},
{
id: "DisjointSet",
category: 'Graph Algorithms'
},
{
id: 'LCS',
category: 'DP & Extras',
Expand All @@ -344,6 +340,10 @@ export const algoFilter = [
id: 'CreateGraph',
category: 'DP & Extras',
},
{
id: "DisjointSet",
category: 'DP & Extras'
},
{
id: 'SplayTree',
category: 'DP & Extras',
Expand Down
109 changes: 101 additions & 8 deletions src/pseudocode.json
Original file line number Diff line number Diff line change
Expand Up @@ -938,22 +938,115 @@
},
"DequeLL": {
"addFirst": {
"code": [],
"english": []
"code": [
["procedure addFirst(data)"],
[" if size == 0"],
[" head ← new Node(data)"],
[" tail ← head"],
[" else"],
[" Node newHead ← new Node(data)"],
[" newHead.next ← head"],
[" head.prev ← newHead"],
[" head ← newHead"],
[" size++"],
["end procedure"]
],
"english": [
["procedure addFirst(data)"],
[" if (list is empty):"],
[" head points to new node"],
[" tail points to new node"],
[" else:"],
[" create newHead node with data"],
[" newHead.next points to head"],
[" head.prev points to newHead"],
[" head points to newHead"],
[" increment size"],
["end procedure"]
]
},
"addLast": {
"code": [],
"english": []
"code": [
["procedure addLast(data)"],
[" if size == 0"],
[" tail ← new Node(data)"],
[" head ← tail"],
[" else"],
[" Node newTail ← new Node(data)"],
[" newTail.prev ← tail"],
[" tail.next ← newTail"],
[" tail ← newTail"],
[" size++"],
["end procedure"]
],
"english": [
["procedure addLast(data)"],
[" if (list is empty):"],
[" head points to new node"],
[" tail points to new node"],
[" else:"],
[" create newTail node with data"],
[" newTail.prev points to tail"],
[" tail.next points to newTail"],
[" tail points to newTail"],
[" increment size"],
["end procedure"]
]
},
"removeFirst": {
"code": [],
"english": []
"code": [
["procedure removeFirst()"],
[" T data ← head.data"],
[" head ← head.next"],
[" if head == null"],
[" tail ← null"],
[" else"],
[" head.prev ← null"],
[" size--"],
[" return data"],
["end procedure"]
],
"english": [
["procedure removeFirst()"],
[" copy data at head to temp"],
[" head moves to next node"],
[" if (head is null):"],
[" null out tail"],
[" else:"],
[" null out head.prev"],
[" decrement size"],
[" return temp"],
["end procedure"]
]
},
"removeLast": {
"code": [],
"english": []
"code": [
["procedure removeLast()"],
[" T data ← tail.data"],
[" tail ← tail.prev"],
[" if tail == null"],
[" head ← null"],
[" else"],
[" tail.next ← null"],
[" size--"],
[" return data"],
["end procedure"]
],
"english": [
["procedure removeBack()"],
[" copy data at tail to temp"],
[" tail moves to previous node"],
[" if (tail is null):"],
[" null out head"],
[" else:"],
[" null out tail.next"],
[" decrement size"],
[" return temp"],
["end procedure"]
]
}
},

"BST": {
"preorder": {
"code": [
Expand Down