Before taking CSC148 or even CSC108, I had some background knowledge on Java programming and this led me to believe that python programming would be similar to Java and I would have no problems in CSC148. This thought soon changed as I started listening to lectures on abstract data types, I was instantly lost and started to get confused on how stacks and queues work. The thing that frustrated me the most was why queues would take much longer time to store and pop data than stack. But after going to the lab and doing the lab exercises, I realized that when popping an item from queues, the rest of the items in the queues have to move and reorder themselves which was why queues would take longer time to complete a task than stacks. In conclusion, this week I learned a lot of new things such as abstract data types, class implementation.
No comments:
Post a Comment