Search found 221 matches

by kmatzen
Mon Dec 22, 2008 3:43 am UTC
Forum: Computer Science
Topic: Best functional language for self-modifying programs
Replies: 22
Views: 3555

Re: Best functional language for self-modifying programs

Any thoughts on http://norvig.com/paip.html ? Seems like the googlesphere likes it.. Not to mention that my CS course lets you do either purely logical AI (i.e. Progol & ILP) or straight to the statistical machine learning & bayesian graphical models stuff, but you never get to go back and ...
by kmatzen
Fri Dec 19, 2008 10:18 pm UTC
Forum: Computer Science
Topic: Best functional language for self-modifying programs
Replies: 22
Views: 3555

Re: Best functional language for self-modifying programs

x86 assembly (with correct CPU cache configurations) :) I kid. Lisp or Prolog. I never really thought about Erlang for self-modification. Does it do it in a similar way as to Prolog with the dynamic declaration? I like Erlang for the built-in pattern matching, bit manipulation tools, easy to use thr...
by kmatzen
Fri Dec 19, 2008 5:54 pm UTC
Forum: Computer Science
Topic: 'Academic' programming language
Replies: 35
Views: 5366

Re: 'Academic' programming language

To give you an idea of what we learn at my school, I just finished a grad class called knowledge based systems, EECS 543 in our catalog. In the class we covered a number of concepts with Common Lisp, but then move on to Prolog where many of those concepts are natively part of the language. Then we d...
by kmatzen
Fri Nov 21, 2008 8:38 pm UTC
Forum: Computer Science
Topic: Honest necessity of calculus in computer Science
Replies: 30
Views: 29165

Re: Honest necessity of calculus in computer Science

I think I've used all of my math up to this point within my CSE degree. Calc I-III with physical simulations. Sometimes used to prove things in probability and number theory. Also helps with some optimization algorithms. Robotics. Diff Eq sparingly in algorithm proofs or AI. Discrete math everywhere...
by kmatzen
Mon Nov 10, 2008 3:17 am UTC
Forum: Coding
Topic: Making random numbers C++
Replies: 41
Views: 4387

Re: Making random numbers C++

bear in mind that using mod to calculate rand can give a non-flat distribution (assuming the starting distribution is flat) e.g. with that algo on windows you would expect the lower numbers to come out ~ 1/5000 more often because rand_max is smallish and not a multiple of 6. of course if this is fo...
by kmatzen
Sun Nov 09, 2008 4:12 pm UTC
Forum: Computer Science
Topic: urgent help with homework assignment
Replies: 6
Views: 1846

Re: urgent help with homework assignment

231 - 1

Fail
by kmatzen
Sun Nov 09, 2008 4:07 pm UTC
Forum: Computer Science
Topic: Getting a real computer science education
Replies: 9
Views: 2522

Re: Getting a real computer science education

You could give topcoder a try. It forces you to learn many types of algorithms and it also gives you the opportunity to look at other people's code (to learn other people's styles and also how to read it quickly in order to break it.)
by kmatzen
Sun Nov 09, 2008 4:04 pm UTC
Forum: Computer Science
Topic: Help me please::I think I am interested in a PhD but..
Replies: 3
Views: 1410

Re: Help me please::I think I am interested in a PhD but..

I was told that if you get a master's degree at one school it is really hard to get accepted at another school for a Ph.D. program. The reason being, if you drop the program a few years into at the same school as your master's then it just looks on your resume like you took a long time to do the mas...
by kmatzen
Sat Nov 08, 2008 3:23 pm UTC
Forum: Coding
Topic: A few questions about right justifying bits in C
Replies: 21
Views: 3141

Re: A few questions about right justifying bits in C

Sorting a bitfield is the only sort that can be done in O(n) time, because it can be done by counting. Wikipedia says so. Okay, yeah, sure. The lower bound I stated was for a comparison sort and you are talking about a counting sort. When the posted said he didn't want a counter and said sort I aut...
by kmatzen
Fri Nov 07, 2008 4:43 pm UTC
Forum: Coding
Topic: A few questions about right justifying bits in C
Replies: 21
Views: 3141

Re: A few questions about right justifying bits in C

Um, would you accept the following solution? unsigned char x = VALUE; unsigned int counter = 0; while(x){ x &= (x-1); counter++; } unsigned char y = (1 << counter) -1; that looks like it might work but im trying to get it done without a count Im thinking il just have to sort it thanks Sort it??...
by kmatzen
Fri Nov 07, 2008 2:08 pm UTC
Forum: Coding
Topic: A few questions about right justifying bits in C
Replies: 21
Views: 3141

Re: A few questions about right justifying bits in C

Um, would you accept the following solution?

unsigned char x = VALUE;
unsigned int counter = 0;
while(x){
x &= (x-1);
counter++;
}
unsigned char y = (1 << counter) -1;
by kmatzen
Sat May 17, 2008 9:51 pm UTC
Forum: Computer Science
Topic: College Programming: Online?
Replies: 9
Views: 2701

Re: College Programming: Online?

I could post some materials that I've used for my U of Michigan courses. Let me know if you are interested.
by kmatzen
Mon Mar 24, 2008 3:58 am UTC
Forum: Coding
Topic: You can turn it on? Give me a new hard drive!
Replies: 22
Views: 4067

Re: You can turn it on? Give me a new hard drive!

I get really tired of the constant whining from other people asking me to fix their computers when they don't even try a simple google. Key example: ex-girlfriend. Only ever does she contact me when she needs me to fix her computer. Or iPod. Or Xbox 360. Or HDTV. Or her dad's racecar's computer syst...
by kmatzen
Sun Mar 23, 2008 7:57 pm UTC
Forum: Computer Science
Topic: College Majors and Courses
Replies: 32
Views: 5058

Re: College Majors and Courses

In addition to that I work on a research project that relies on AI planning and scheduling in the aerospace department. So there are definitely lots of cool stuff to do here. UROP? Yes. Just make sure if you go with UROP that you choose a project that you can actually get something out of, not just...
by kmatzen
Sat Mar 22, 2008 3:49 am UTC
Forum: Computer Science
Topic: similarity between documents
Replies: 7
Views: 2252

Re: similarity between documents

Wait, are you saying, hey I've got a bunch of different documents and I would like to read the contents of each and then cluster those documents together based on how they relate?

That's pretty much what our last algorithms project was...
by kmatzen
Sat Mar 22, 2008 3:38 am UTC
Forum: Computer Science
Topic: College Majors and Courses
Replies: 32
Views: 5058

Re: College Majors and Courses

I'm a sophomore at the University of Michigan right now majoring in computer science engineering and minoring in mathematics. So far I haven't thought it's been too much math in CS, but then again I got all the calculus done in high school (although UM required me to retake calc 3 and diff eq since ...
by kmatzen
Sat Mar 22, 2008 12:35 am UTC
Forum: Coding
Topic: Is this possible? (Storing a memory address)
Replies: 18
Views: 2462

Re: Is this possible? (Storing a memory address)

I've got to agree on this one. For example, if you try to run your code on an x86_64 machine you are likely to run into problems. On my Core 2 Duo, an int is 4 bytes, but a pointer is 8 bytes so effectively you would be losing your upper immediate. Non-portable = bad. Also, if you want to know more ...
by kmatzen
Thu Dec 27, 2007 10:16 pm UTC
Forum: Coding
Topic: Networking in C++?
Replies: 24
Views: 2643

Re: Networking in C++?

I second QtNetwork. I know how to use QSocket and QServerSocket. Pretty simple really. And Qt 4.4.0 technical preview just came out so you might want to take a look at that as well since it adds some nice web browsing features. Btw, Qt is portable to Linux, Mac, and Windows, and Qtopia provides a wa...
by kmatzen
Wed Nov 21, 2007 6:11 am UTC
Forum: Religious Wars
Topic: Is Java is a bad language for beginners?
Replies: 234
Views: 134452

Re: Is Java is a bad language for beginners?

Um...google is my friend. I feel if there is one skill that you need to learn a language, it is google. I mean I never programmed anything before other than some simple BASIC stuff when I was a lot younger and I didn't start to learn Java until a month before the AP Comp Sci AB exam. There's not rea...
by kmatzen
Thu Nov 15, 2007 3:29 pm UTC
Forum: Computer Science
Topic: Computer science vs. software engineering?
Replies: 39
Views: 43737

Re: Computer science vs. software engineering?

Here at Michigan we actually have three computer related degrees: Computer Engineering: What I'm in right now. Requires some circuits courses. Kinda sandwiched between Electrical and Computer Science Engineering. You can go as far to one side or the other as you wish. Computer Science Engineering: W...

Go to advanced search