Fixing your weakness

After writing this essay a few days ago, I could not stop thinking of figuring out where exactly my error is. Like I mentioned before, I understand the subject matter but not as deep as I would like to. So, I began by looking backwards: I wanted to figure out during which course I was introduced to them first. I knew that it was around first or second year; and I knew that it was in Calculus. I did not remember if it was Calculus I or Calculus II. I could not remember but why struggle when you can look this up? Since my degree is from an accredited institution that provides accredited degrees — I can simply request this information or look it up. All of the courses and their description is fully published at uOttawa so this took...

Continue Reading →

Unless otherwise mentioned in the post, those projects are side projects which I work on on weekends and evenings, and are not affiliated with my work or employer.

Tags: software engineering, personal development   |   Report a bug via Twitter

Past few days

Mostly been doing a buncha practice and reviewing. You can probably skip reading this entry =) It is me sharing code I wrote and nothing crazy. Followed along and made these things /* SinglyLinkedList */ package com.example; /* SinglyLinkedList Supports: - int size() - returns size of linked list - boolean isEmpty() - return if it is empty or not - void addFirst(E element) - adds a new element and places it at the front of the list - void addLast(E element) - adds a new element and places it at the end of the list - E removeFirst() - removes the first element from the list - and returns it - E first() - returns the first element - (does not remove it from the list) - E last() - returns the last element - (does not remove it...

Continue Reading →

Unless otherwise mentioned in the post, those projects are side projects which I work on on weekends and evenings, and are not affiliated with my work or employer.

Tags: software engineering, computer science, algorithms   |   Report a bug via Twitter

Ceaser cipher and other things

Today, I was browing again in the textbook and for some reason I wanted to implement a simple Ceaser cipher. In the process, I also re-found-out that Strings are immutable in java. I suppose it makes sense then when StringBuilder and the such are used. I also found the following two statements interesting: … that characters are represented in Unicode by integer code points … … upper letters of the Latin alphabet are consecutive (for simplicity … and you know what? No one has ever connected these two ideas together like that or pointed it out. I’ve used these exact ideas before and never considered how fortunate that everything just works (= Why — duh — A is obviously 65 and B is 66. Anywho, I wanted to implement this shifting algorithm and this is how far we got: import...

Continue Reading →

Unless otherwise mentioned in the post, those projects are side projects which I work on on weekends and evenings, and are not affiliated with my work or employer.

Tags: software engineering, computer science, algorithms   |   Report a bug via Twitter

Insertion Sort

Question: Suppose you have an algorithm that you are running that has multiple steps. When you are approximating, when do you add the runtimes and when do you multiply them? if do this, then when you are done with this, do that, then you add runtimes if do this for each time you do that, then you multiply runtimes The Insertion-Sort Algorithm The goal of this algorithm is simple: take an array of elements and sort it in an increasing order. It does so by inserting one element at a time and by comparing elements during insertion. Algorithm InsertionSort(A): Input: An array A of n comparable elements Output: The array A with elements rearranged in nondecreasing order We basically walk one element at a time, from 0 to n: for k from 1 to n do Insert element A[k] at...

Continue Reading →

Unless otherwise mentioned in the post, those projects are side projects which I work on on weekends and evenings, and are not affiliated with my work or employer.

Tags: software engineering, computer science, algorithms   |   Report a bug via Twitter