Programming and Algorithms

banner

Weekly Code
Please Note: If you copy the Python code directly off the slides, it will give you errors since PowerPoint messes up the double quotes ("), so it's better to use the code here.


Online Interpreter:
Python Intrepreter


Week 1:
 Modularised Prime Checker * Parameterised Prime Checker * Global and Local Variables with Strings (Example 1, Example 2, Example 3, Example 4)  * Global and Local Variables with Integers (Example 1, Example 2, Example 3
Week 2:
String Pre-Processing * File Statistics * Word Frequency * Full File Analysis
Sample Files:
StarWarsScript.txtCompleteShakespeare.txt

Replacing a word in a file:
File Word Replace * Input_file.txt
Filtering a String:
Sample String Filtering

 URL Open * URL Join * Web Crawler

More on the HTML Content-Type:
Content Type Checker * HTMLCheckerImproved URL Open * Improved Web Crawler

Week 3:
File Reading (Example 1, Example 2, Example 3, Example 4, Example 5, Example 6, Example 7) * Binary File Reading * File Writing (Example 1, Example 2, Example 3, Example 4, Example 5) * Exception Handling (Example 1, Example 2, Example 3, Example 4, Example 5, Example 6, Example 7)

Week 3 Files:
MyData.txt * MyData2.txt * Python.gif
Week 4:
  Linked Lists * Recursive Programs (Factorial * Fibonacci * Decimal to Binary * Linked Lists)
Week 5:
 Bubble Sort * Selection Sort * Insertion Sort * Shell Sort * Merge Sort * Quick Sort
Week 6:
 Stacks as Linked Lists * Queues as Linked Lists
Week 7:
 Stacks as Arrays * Queues as Arrays * Circular Queues as Arrays
Week 8:
Testing Prime Checker * Testing Fibonacci
Week 9:
 Binary Trees * Menu Binary Trees
Week 10:
Revision Class

 


back

If you have any suggestions, corrections, or comments, please feel free to e-mail me at:
Damian.Gordon(a)dit.ie