Search
70 results for “bterwijn”
-
An exercise to help build the right mental model for Python data.
- Solution: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph_videos/refs/heads/main/exercises/exercise18.py&play
- Explanation: https://github.com/bterwijn/memory_graph?tab=readme-ov-file#python-data-model -
Common 𝘀𝗲𝘁 operation in Python.
Run it in Memory Graph Web Debugger: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph_examples/refs/heads/main/set_operations.py&play -
An exercise to help build the right mental model for Python data.
- Solution: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph_videos/refs/heads/main/exercises/exercise15.py&play
- Explanation: https://github.com/bterwijn/memory_graph?tab=readme-ov-file#python-data-modelThe “Solution” link visualizes execution and reveals what’s actually happening using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵: https://github.com/bterwijn/memory_graph
-
How does Radix Sort work?
Algorithms like Radix Sort: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph/refs/heads/main/src/radix_sort.py×tep=0.2&play
are much easier to understand when you can see every intermediate step.Using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵: https://github.com/bterwijn/memory_graph#readme
you can watch how Radix Sort repeatedly applies stable Counting Sort, sorting the least significant digit up to the most significant digit in turn.Radix Sort is be very efficient, with time complexity O(n · d), where 'n' is the number of values and 'd' is the number of digits.
-
Algorithms can be easier understood with step-by-step visualization using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵. Here we show a Breadth First algorithm that finds the shortest path in a graph from node 'a' to node 'b': https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph/refs/heads/main/src/breadth_first.py&breakpoints=31&continues=1×tep=0.2&play
𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵 github: https://github.com/bterwijn/memory_graph#readme
-
An exercise to help build the right mental model for Python data.
- Solution: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph_videos/refs/heads/main/exercises/exercise12.py&play
- Explanation: https://github.com/bterwijn/memory_graph?tab=readme-ov-file#python-data-modelThe “Solution” link visualizes execution and reveals what’s actually happening using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵: https://lnkd.in/e3sUM7wG
-
Data Structures in Python get easy when you can simply see the structure of your data using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵. A Hash_Set example: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph/refs/heads/main/src/hash_set.py&breakpoints=32&continues=1×tep=0.2&play
𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵: https://github.com/bterwijn/memory_graph#readme
-
An exercise to help build the right mental model for Python data.
- Solution: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph_videos/refs/heads/main/exercises/exercise9.py&play
- Explanation: https://github.com/bterwijn/memory_graph?tab=readme-ov-file#python-data-modelThe “Solution” link visualizes execution and reveals what’s actually happening using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵: https://github.com/bterwijn/memory_graph
-
An exercise to help build the right mental model for Python data.
- Solution: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph_videos/refs/heads/main/exercises/exercise4_mg.py&play
- Explanation: https://github.com/bterwijn/memory_graph?tab=readme-ov-file#python-data-modelThe “Solution” link uses 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵 to visualize execution and reveals what’s actually happening.
-
Automatic data structure visualization in your IDE using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵:
- web debugger binary tree demo: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph/refs/heads/main/src/bin_tree.py×tep=0.2&play
- setup video for VS Code: https://youtu.be/23_bHcr7hqo -
Visualize your Python data structures with just one click.
Hash Set: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph/refs/heads/main/src/hash_set.py&breakpoints=32&continues=1×tep=0.5&play -
Visualize your Python data structure with just one click.
Linked List: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph/refs/heads/main/src/linked_list.py×tep=0.2&play -
Understanding and debugging Data Structures is easier when you can see the structure of your data using memory_graph: https://github.com/bterwijn/memory_graph
Here we show values being added to a Linked List in Cursor AI. When adding the last value '5' we "Step Into" the code to show more of the details: https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/linked_list.gif
🎥 See the Quick Intro video for the VS Code integration: https://youtu.be/23_bHcr7hqo
-
Understanding and debugging Data Structures is easier when you can see the structure of your data using memory_graph: https://github.com/bterwijn/memory_graph
In this example we show values being inserted in a Binary Tree. When inserting the last value '29' we "Step Into" the code to show the recursive implementation: https://shorturl.at/bx848
🎥 See the Quick Intro video for the VS Code integration: https://youtu.be/23_bHcr7hqo
#Python #BinaryTree #Tree #DataStructure #memory_graph #debug
-
Here’s Selection Sort running with memory_graph. You can see the updating of `min_value` and the swaps of list elements in each step. Run a one-click live demo in Memory Graph Web Debugger: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph/refs/heads/main/src/selection_sort.py&breakpoints=13,27&continues=1×tep=0.2&play
Visual feedback like this helps beginners grasp what the code does and debug with confidence. -
Teaching and learning Python data structures gets much easier when you can see the structure of your data in real time using the open-source memory_graph package. Here is a 'Binary Tree' example:
https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph/refs/heads/main/src/bin_tree.py×tep=0.2&play -
Visualize your Python data structure with just one click.
Binary Tree: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph/refs/heads/main/src/bin_tree.py×tep=0.2&play -
Data structures like Trie: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph/refs/heads/main/src/build_trie.py&breakpoints=40,42,43&continues=1×tep=0.2&play
can in Python be easier understood and debugged after visualization using the memory_graph package: https://github.com/bterwijn/memory_graph?tab=readme-ov-file#installationA Trie is a tree of dictionaries and can be used for things like word completion.
-
Algorithms can at first seem complex to students, but with memory_graph every step is clearly visualized, giving students an intuitive understanding of what their code is doing and making bugs much easier to spot and fix. Here's an example Bubble Sort algorithm: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph/refs/heads/main/src/bubble_sort.py&breakpoints=29,38&continues=1×tep=0.2&play
-
Algorithms can at first seem complex to students, but with memory_graph every step is clearly visualized, giving students an intuitive understanding of what their code is doing and making bugs much easier to spot and fix. Here's an example Insertion Sort algorithm: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph/refs/heads/main/src/insertion_sort.py&breakpoints=13,29&continues=1×tep=0.2&play
-
An exercise to help build the right mental model for Python data.
- Solution: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph_videos/refs/heads/main/exercises/exercise1.py&play
- Explanation: https://github.com/bterwijn/memory_graph?tab=readme-ov-file#python-data-modelThe “Solution” link uses 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵 to visualize execution and reveals what’s actually happening.
-
An exercise to help build the right mental model for Python data. The “Solution” link uses 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵 to visualize execution and reveals what’s actually happening:
- Solution: https://memory-graph.com/#codeurl=https://raw.githubusercontent.com/bterwijn/memory_graph_videos/refs/heads/main/exercises/exercise2.py&play
- Explanation: https://github.com/bterwijn/memory_graph?tab=readme-ov-file#python-data-model