Skip to main content Skip to navigation

Sample code

Here I will put any bits of sample code which I think might be useful for the lectures or the assignments.

Code for assignments - this is old stuff from the C version of the module

  • timer.tgz - some code to get you up and running with the CSC environment and learning to measure the execPublishution time of a piece of C code.
  • FFT.tgz - a skeleton code and Makefile to get you started with the fftw3 implementation of the Fast Fourier Transform.
  • linkedlist.tgz - a basic C++ implementation of a linked list
  • binarytree.tgz - a basic partial C++ implementation of a Fenwick tree
  • goldenSectionSearch.py - a simple implementation of the Golden Section Search in python

Other stuff