|

Searching Indexs

Now the idea behind weighted search is nice, but it is complicated, requires several extra calculation steps, and can cause other issues. In a Database, you might have heard about indexing. The idea of finding a way to store a subset of your table which means faster searching. Of course, if you are looking through…

Complex Data Types That Come with Your Language

Complex data types are usually classes. Some might be supplied by the language, while others are user defined. Complex data types have methods built in for working with the data, libraries that come with the language (potentially) and will vary from language to language on how they are stored and handled. The types of data…

Recursion in Python

We’ve seen examples of where one function calls another. For example inside of main, you see that load_data(), total(), and average() are called. Recursion is where a function, calls itself. As you can see, calling yourself is “easy” but also “dangerous”. You can easily end up in an infinite recursive loop, that is until you…