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:
 Stacks as Arrays * Queues as Arrays * Circular Queues as Arrays
Week 3:
  Linked Lists * Recursive Programs (Factorial * Fibonacci * Decimal to Binary * Linked Lists)
Week 4:
 Stacks as Linked Lists * Queues as Linked Lists
Week 5:
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 5 Files:
MyData.txt * MyData2.txt * Python.gif
Week 6:
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

Week 7:
 URL Open * URL Join * Web Crawler

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

Week 8:
Review Week

 
Week 9:
   Bubble Sort * Selection Sort * Insertion Sort * Shell Sort * Merge Sort * Quick Sort
Week 10:
No Class
 
Week 11:
  Testing Prime Checker * Testing Fibonacci
Week 12:
Revision Class

 


back

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