Wednesday, January 22, 2014

AVL Rotations

The following links explain and show illustrations of the single and double rotations we discussed today:

http://209.237.84.181:7600/index.php/AVL_Trees
(Note that in this link the balance factor is computed as: right height - left height, which is the opposite of what we used in class).

http://pages.cs.wisc.edu/~paton/readings/liblitVersion/AVL-Tree-Rotations.pdf

Bittawfeeq,

Thursday, January 16, 2014

Tutorial Sessions

This is a note from our TAs Maryam and Raghda:

"I Just want to confirm that next Tuesday will be a session to review the basic of
BST and on Wednesday the session will be about solving questions about BST too.
The both sessions will be in 204 at (2:00-4:00)pm."

Wednesday, January 8, 2014

Iterative Tree Traversals

We have seen in class the iterative version of the pre-order traversal. The following two links discuss how post-order and in-order traversals can be implemented iteratively:

http://leetcode.com/2010/04/binary-search-tree-in-order-traversal.html

http://leetcode.com/2010/10/binary-tree-post-order-traversal.html

Thursday, January 2, 2014

Assignment 3

Assignment 3 is ready, check it out in the assignment tab.

Enjoy!

Wednesday, January 1, 2014

Second Exam Solutions

You can find in the following cpp file solutions for the list, queue and tree programming questions.

ExamSolutions.cpp

Saturday, December 14, 2013

Stacks and Queues

Here is a Java applet that simulates a circular implementation of a queue, it helps visualize what happens:

http://www.cosc.canterbury.ac.nz/mukundan/dsal/CQueueAppl.html

Here is also a link that explains a few real-world applications of stacks:

http://jcsites.juniata.edu/faculty/kruse/cs240/stackapps.htm

Enjoy the snow!

Tuesday, December 10, 2013

Makeup Lecture

As agreed, the makeup lecture (Dr. Ibrahim's section) will be inshaAllah on Sunday at 1:00 PM.

Spread the word!

Wednesday, November 27, 2013

Exam1

Grades of Exam 1 are ready. You pass by my office between 10:00 and 12:00 to receive them.

You can also have a look at the solutions for the two functions here:
- DeleteMNodes.
- O(n) Sort.

-Ibrahim

Sunday, November 10, 2013

New Tutorial Sessions

There will be two tutorial sessions this week:

  • Tuesday 12/11/2013 (IT-206): Sorting Algorithms.
  • Wednesday 13/11/2013 (IT-206): Linked Lists.
Make sure not to miss these sessions as the exam is approaching. Any suggestions regarding these tutorial sessions and how they are conducted are also welcome.


Thursday, November 7, 2013

Assignment 1 Submission Link

Assalamu Alaikum,

For Dr. Ibrahim's section,

- Submit your solution to the assignment as a soft copy before Sunday 10/11/2013 midnight on this link.
- Please also bring your solution as a hard copy to the lecture on Monday 11/11/2013.

Bittawfeeq!

Monday, November 4, 2013

Tutorial Sessions

As promised, there will be two tutorial sessions this week on the analysis of algorithms:

Tuesday (5-11-2013) at 2 PM in Room 206.
Wednesday (6-11-2013) at 2 PM in Room 206.

Please do not miss these sessions if you have any problem with the course material covered so far or if you have missed any lecture in the previous days for any reason.

I encourage you all to attend,

Bittawfeeq!

Thursday, October 31, 2013

Sunday, October 20, 2013

Asymptotic Analysis

Eid Mubrark every one~!

Here is a good-short-informal summary of the asymptotic analysis of algorithms.

At the end of the video Big-Theta and Big-Omega are mentioned, which we do not cover in this course. More about them in the "Design and Analysis of Algorithms" course inshaAllah.




Wednesday, October 9, 2013

A Change in Office Hours (Dr. Ibrahim)

Due to the changes in my course schedule, I have changed the office hours to be:

Su, Tu, Th: 10:00-12:00