Tuesday, 3 December 2013

Addition and Multiplication of Binary Representations

This was considered a challenging topic until I actually took time try and solve it by my own. It was probably challenging since I've never had to do this but once you learn it, it's pretty useful.
Do take a minute to watch this video and try the problem on your own if you are struggling through this topic.
Just to summarize the rules
1. Addition: If the column sums to more than one you carry that one on to the other column. Continue this process every time the sum of a column is higher than 1.
2. Multiplication: Multiply digit-by-digit (just as in base 10). When you reach the "addition stage " follow step 1.

 



Monday, 2 December 2013

Base 2 vs Base 10 Part II

As my last video mentioned, the following videos continue to talk about the topic of base 2 to base 10 conversion.
This video is on converting base 2 to base 10.

The following video shows a past test example of converting base 10 to binary(base2). Try pausing the video and solving it on your own and then continue watching the video.

My next video will be on the addition and multiplication of binary representations.  
                                         

Base2 vs Base 10 Part I

This was actually one of the topics of our test 2. Some students did struggle through this so I decided to post a few videos that explain these two concepts. It might look blurry in a few cases but the writing is pretty clear.
The first video is just a brief description to identify the differences between base 2 and base 10.
This second video is to explain the how to convert from base 10 to binary(base 2). In this case I used number 5 as an example since it's fast and simple. 

Saturday, 30 November 2013

The Past and Wikipedia I ( Tips)

We discussed various early devices that were used before modern technology arose. What most interested me from this lecture was the fact that women where actually the first programmers. Women were known for clear thinking, speed and manual dexterity. At this time, as we can expect human labour was much cheaper than computer cycles, since they occupied to much space and were programmed by just connecting pins. It's amazing to see how technology progressed over the years and it is now a necessity to almost every human being.  As every other thing in life, it has cause a few negative impact such as the lack of face-to-face communication, laziness and certain people have become even addicted to certain technology including social-networking but I still highly believe it  has been more beneficial than harmful. 
This week the first part of the Wikipedia assignment was due. I decided to work on topics that I was familiar with. I choose to work on the chemical compound ammonia, the state of anxiety and the photosynthetic organism cyanobacteria. My wikipedia assignment turned out excellent! Although, I highly encourage you to start this assignment ahead of time. 
Below are a few tips that might help you:
- In a single sentence give your userid followed by a sentence introducing your articles of interest.
-In point form, list the articles you will be working on.
- Since you're going to convert it to a PDF, hyperlinks would look pretty cool below each article you choose.
For the two paragraphs you have to write you might want to include the following:
-Why did you chose these articles?
- What's the point of fixing these specific articles?
-In what way will people around the world benefit from this?
-What's your goal? This could be providing up-do-date information to improve future research projects.
-How are you going to fix it? You might want to mention, the U of T library, the help desk, any tutorial videos or journals.
-Finish up by writing down a few sentences to summarize the results to expect. 
- Once again, please start this ahead of time!

Rotate, beside or above...Why not all together?


As mentioned in earlier posts, during this semester we used a program called DrRacket which is a program capable of applying several functions to one or more images resulting in a very interesting output.
You can play around with a few images. Just to show you a few simple things I decided to choose this image of a fire-cat.
This is the original image of fire-cat which I defined as fire on DrRacket. (input)
The output (depending on whatever you want to do) could look something like this:


 You can rotate the image, and rotate again....












Place one beside the other. 
Why not all together? You can also combine rotate, above and beside to form something like this.
HINT: Make sure your parenthesis match up correctly. (Want to avoid mistakes? Then trust me on this...)


                          

Are YOU alive?

As my last post said "from the start". 
During my first week of classes, we were discussing a few concepts including algorithms. We were given a brief description on the history behind this concept. It basically all starts from the desire to solve problems. As we can see,  this desire eventually leads us to the design of highly advanced programs that are currently used  in several fields for different and specific reasons. From reading this, you might ask yourself why has there been such a large gap between past and today when algorithms are indispensable in everyday life? The answer is quite simple, lack of funding, knowledge and of course the absence of modern technology. Evolution has lead us to an increase in population growth and economy resulting in a high demand to optimize the progress in the development of computing. 
Moving on to another topic, we also learned how to properly give instructions on how to make a peanut butter and jelly sandwich to someone who (for some odd reason) has never made one before. The goal of this, was to understand that  it takes a short, precise, effective and non-repetitive instruction to generate a clear understanding of the process.
Do you know how to make a PBJ? 

From the start....

Hello and Welcome to BonjourPC.
Are you  exploring computer science for the first time? Then, you have found the right place! In this BLOG I will mainly be taking you through my journey of Computational Thinking and the use of DrRacket. 
Stay tuned for more posts on CSC104H1... 
Meanwhile enjoy this picture.

My molecular model of "ethane" holding my Ipad.
(by PS)