Python Classes & The Market

I wanted to go over classes in python and how to inherit their information so that we have an intermingling program of classes working with proper functions. My scenario here is a market place to sell art, and the clients who buy and sell. So to begin I’ll set up a Marketplace class. Now my […]

Read More…

Python Linear Data Structures: A Trip to Hanoi Tower Part 2— Linked List

Linked lists are one of the basic data structures used in computer science. They have many direct applications and serve as the foundation for more complex data structures. There are different types of list, for example, stacks which work on a first-in-last-out principle (FILO). Imagine setting a stack of dishes. The one you can see […]

Read More…

Python Linear Data Structures: A Trip to Hanoi Tower

In my Hanoi Tower series I’ll go over data structures using python. In particular nodes, linked lists, and stacks. The culmination of which will enable us to create a script for the hanoi tower game. Nodes are the basic building block of data structures- made up of two parts: the data it holds, and a […]

Read More…

Python Data Structures: The Giving Tree

Python trees are a lot like linked-list, but with a hierarchical order. Trees are composed of nodes that link to other nodes. The bottom node that doesn’t have a link are referred to as leaves.The node that linked to another node is known as the parent, and the linked-to are the children. A tree is […]

Read More…

Python Data Structures: Graphs Part I

I wanted to talk about Python graphs as they are an essential tool in data structures. Graphs are a way to visual connections in a network. Above you can see vertices, which are the same as nodes that holds information. The links that connect them are called edges (no idea why, seems kinda silly to […]

Read More…

Python Structures: Graphs Part II

Welcome to part II of my graph series. Here I’ll be explore the nuts and bolts of setting up the two classes (vertex, and the graph) for a graph structure. Now like any good programmer, before we jump in let’s familiarize ourselves with what we’ll want our classes to do. Our vertex much like nodes […]

Read More…

Python Efficiency: Demystifying Asymptotic Notation

Coding is a powerful tool that can accomplish some real complex computations. It’s important that we write efficient code, even more so when dealing with large swaths of data, as that can take some real processing power, and not all computers are built equally. So when we talk about how fast a program is it’s […]

Read More…

Python, and the Story of Recursion

Recursion are an interesting, and tricky concept in our Python tool box. Basically it’s when code goes meta, and calls upon itself to execute a self function until it meets a base requirement to exit the loop. These sorts of algorithms are used for iterating over a list. So why use recursion when we already […]

Read More…