Two of the sample algorithms which I have worked on