Progress
This week I've found it really tough to find some time. Not only do I have Christmas parties Thursday and Saturday, but I also had food poisoning friday, blah not fun.
PSET 3 Problem #1
The first pset problem is already written, but I need to edit functions that is written in a different file and linked to the main program.
The program has a "sort" and "search" function.
I understand the basic framework for a selection sort
2 loops that iterative over the array.
the second loops will find the smallest number and then replace that number into the first loops position...
I'm just a little fuzzy on how to swap the numbers in an array but I think I have a good idea of where to start. Using a placeholder to hold a value, and then I can do the swap that way.
2nd Part
The Search function they are calling for binary search.
Game of Fifteen
This looks like it may be challenging. I took a brief look at the second problem, and it looks like it involves a multidimensional array. It looks like it might take some effort to do.
Loops & Arrays
The last 2 PSETS have hammered home the use of loops. This pset also uses loops, but has thrown in arrays and basic use of functions. I really enjoy how this course is linking everything together. Loops for a beginners are kind of tricky in applying them to problems, but I feel that for every problem I do, I gain a lot of knowledge in how to apply them to a problem.
Not only am i learning how to code, but I'm also learning a bit more on the history of programming languages, and how things work under the hood.
No comments:
Post a Comment