User Tools

Site Tools


opus:fall2012:dmckinn2:part3

Part 3

Entries

Entry 1: November 15, 2012

Today in Discrete we got all of our implemented sort programs check off. Most of the class did not have it completed, but we needed to move on. We also filled out the instructor evaluation papers for Matt.

  • finishing our sort program
  • long project

Entry 2: November 16, 2012

Today in Data we took a pop knowlege quiz. We also talked more about libraries, and also learned about archives.

  • Libraries, archives

Entry 3: November 27, 2012

Today in discrete, we were introduced to some of our end of course experience. Matt went over the content of the questians and then talked a little bit about the GD librairy. We also talked about what the rest of the semester was going to consist of, as far as new material and projects.

  • the EOCE is significant to this course
  • the EOCE is significant because it is our final for the course

Entry 4: November 28, 2012

Today in Data we were introduced to our end of course experience. We talked about libraries, and binary trees as well. The rest of the classes will be working on the remaining binary tree project and EOCE.

  • EOCE is significant
  • the EOCE is significant because it is the final for data structures

Keywords

data Keyword 3

Recursion

Definition

Recursion is one technique for representing data that's size is not always known by the programmer. The implementation of recursion would be a function calling it's self in the function, there fore creating an infinite number of computations.

References

List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).

  • class
  • wikipedia

data Keyword 3 Phase 2

Identification of chosen keyword.

Definition

Definition (in your own words) of the chosen keyword.

References

List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).

  • Reference 1
  • Reference 2
  • Reference 3

Demonstration

Demonstration of the indicated keyword.

If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:

/*
 * Sample code block
 */
#include <stdio.h>
 
int main()
{
    return(0);
}

Alternatively (or additionally), if you want to demonstrate something on the command-line, you can do so as follows:

lab46:~$ cd src
lab46:~/src$ gcc -o hello hello.c
lab46:~/src$ ./hello
Hello, World!
lab46:~/src$ 

discrete Keyword 3

combination

Definition

A combination is a set containing a certain number of objects that have been selected from another set. In combinations, the order of the elements does not matter.

References

List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).

  • wikipedia
  • class

discrete Keyword 3 Phase 2

regular expression

Definition

Regular expressions are commands that match a pattern or characters in a string of characters or words. Some of the regular expression commands are the ^ that matches the beginning of a line, the $ matches the end of line, the \< matches the beginning of the line, \> matches the end of the word, . matches any single character, * 0 is 0 or more of the previous character or whatever you put in front of the *, [] matches any of the characters enclosed, [^ ] does not match any of the characters enclosed. Then there is also extended regular characters or egrep. Those are () which is like \( \), | which means or and + which matches 1 or more of the previous character. Usually you have to use a combinations of these to get what you want.

References

Demonstration

Demonstration of regular expression.

If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:

#include <stdio.h>
#include <regex.h>
int main(void)
{
        regex_t reg;
        const char *regex="[abc]";
        const char *str="sadf";
        regmatch_t matches[16];
 
        regcomp(&reg, regex, REG_EXTENDED);
 
        if(regexec(&reg, str, 16, matches, 0) == 0)
        {
                printf("regex /%s/ matched string '%s' at bytes %d-%d\n",
                        regex, str, matches[0].rm_so, matches[0].rm_eo);
        }
        else
                printf("regex /%s/ does not match string '%s'\n", regex, str);
}

Alternatively (or additionally), if you want to demonstrate something on the command-line, you can do so as follows:

lab46:~$ nano test.c
lab46:~$ gcc -otest test.c
lab46:~$ ./test
regex /[abc]/ matched string 'sadf' at bytes 1-2
lab46:~$ 

Experiment 3

Question

is a cpu water cooling system significantly better then a typical fan and heat sink system?

Resources

Hypothesis

based on what i have read, and learned in school, i think that a water cooling system will deffinitly cool the cpu and the over all system by a noticable amount. I am not sure how ever that it will make much of a difference when not putting a large load on the system (i.e. overclocking or gaming).

Experiment

Since i over clock my cpu to the max and game often i have done plenty of researce and have decided to purchase a corseair h100 water cooler. I will run a controll test before i install the water cooler and get a temp reading on the cpu. I will then install the water cooler, and run the same test and take another reading.

Data

While the cpu was over clocked over 4 GHz and wile playing a graphic intensive game(starcraft 2 ), the cpu was running very hot some times over 65 C. while under the same senorio with the water cooling the cpu ran around 45 c.

Analysis

Based on the data collected:

  • my hypothesis was correct
  • although my hypothesis was correct, the water cooler performed much better wile under a load then i though it would.
  • there might be some shortcomming in my experiment only because the room i was in was much warmer when i ran the second test then it was during the first. even though i dont think that would effect it much at all.

Conclusions

My feelings are, that if you plan to over clock your cpu and or you do alot of gaming, i would make the investment and buy a water cooler. On the other hand, if you dont do either of those two things then your computer should be perfectly find with the stock cooling.

opus/fall2012/dmckinn2/part3.txt · Last modified: 2012/11/30 13:42 by dmckinn2