# Homework

Show 100 post(s) from this thread on one page
Page 2 of 3 First 123 Last
• 08-01-2013, 12:44 AM
Tscheuss
Big word for counting
Combinatorics is a rather intimidating word, but it seems the focus is on combinations and probabilities, which most of us have dealt with in junior or high school. It is just another way of counting how many ways a set of things can be arranged, more or less. Lots of word problems, though, and they get tricky. Once I figure out which formula I need, the answers come fast. :)
• 08-03-2013, 12:23 AM
Tscheuss
Okay. So I have 4 kinds of bread and 4 kinds of meat. If I can choose only one type from each group, how many different types of sandwiches are possible?

4 x 4 = 16 different combinations of bread and meat.
• 08-04-2013, 09:38 PM
Aolas
Quote:

Originally Posted by Tscheuss
Okay. So I have 4 kinds of bread and 4 kinds of meat. If I can choose only one type from each group, how many different types of sandwiches are possible?

4 x 4 = 16 different combinations of bread and meat.

Heh it reminds me of an episode of 50 Rock. "The Tracy Jordan Meat Machine": You take ONE piece of meat.. and put it inbetween another TWO pieces of meat.. and then The Tracy Jordan Meat Machine fuses it together...

The Tracy Jordan Meat Machine...MEAT is the new BREAD!
• 08-05-2013, 12:35 AM
Tscheuss
Woot!
Exams are done. Halfway through this set of classes.

Can't wait to see what's next.

Or, actually, I can wait.

But the professors won't. XP
• 08-05-2013, 01:26 AM
Tscheuss
Final Project?
Professor provided early warning.

Time to start planning my final project in Discreet Structures. I have my choice of three topics:

• Database design using set theory;
• Combinatorics;
• Recursive programming.

All three start with a history, then details and examples. At first, I missed the part about choosing one; I thought I had to do all three. :o
• 08-05-2013, 01:40 AM
Tscheuss
In the meantime...
Programming focus is on File I/O, complete with relevant Java classes, methods, and exceptions, oh my.

Discreet Structures focus is now on Tree Structures and their relevance to search and sort algorithms.

*sigh*
• 08-07-2013, 04:04 PM
Tscheuss
Java file handling looks a bit complicated. It has a File class that doesn't read or write files at all; it handles other file info like path, name, size, last accessed, file vs. directory, etc.

It looks like the Stream classes do the actual reading and writing, and there are lots of ways to skin these kobolds.

*sigh*
• 08-07-2013, 08:50 PM
Tscheuss
Okay, so my text says that a character stream to file represents '5' as 00000000 00110101, because this binary for 53 is Unicode for the character '5'. No problem. However, the text also says that a byte stream represents '5' as 101, the binary for 5. Wouldn't a byte stream represent 5 as 00000101 because it is a full byte?
• 08-09-2013, 07:04 PM
Tscheuss
A Well Known Game?
The book is describing how trees can be used to analyze games. The last sentence on the page says that the next example displays a game tree for a well-known and well-studied game. As I turn the page, I am thinking Tic-Tac-Toe, maybe. Then I see the game tree, and the name of the game.

Nim.

Next thought: Well-known by whom? This is the first I have heard of this game.

The book says it is an ancient game, and its current name comes from an archaic English word for 'to steal'.

Mystery solved. This game is before my time. ;)
• 08-11-2013, 06:14 PM
Tscheuss
I have a set of exercises where I need to convert rooted binary trees to algebraic expressions, and vice versa.

All was going well until the last diagram. When traversed inorder, it terminated with an addition operator instead of a value. :(

So my answer looked something like (x(2-y))+(7+z+20+?). I am thinking/hoping that the given tree was in error, because I went back over everything else and could not find any other explanation.
• 08-16-2013, 03:06 AM
Tscheuss
Joy. :D

Search algorithms, sort algorithms, efficiency of same in big O notation, and...

wait for it...

Boolean algebra. Woo-hoo!

My brain hurts. *sigh*
• 08-18-2013, 05:59 AM
Aolas
Aww, never mind pet it could be worse
Quote:

Originally Posted by Tscheuss
My brain hurts. *sigh*

• 08-19-2013, 06:30 PM
Tscheuss
Using Java to access a SQL database, converting between number systems, and a PowerPoint presentation on combinatorics - history, modes, applications, etc. Oh, and finals week. :(:):p
• 08-22-2013, 01:26 AM
Tscheuss
Funny question
Had a question on final that didn't look right:

Which SQL keyword is not used with a SELECT statement?

• FROM
• INSERT
• PUT
• UPDATE

Does this look strange to anyone else?
• 08-24-2013, 07:53 AM
Tscheuss
Late night
Spent long hours finding the right flavor of MySQL to put on my machine to create a database to access from a Java program. Of course, the first half of that was to match a specific set of steps in a book; the second half was my own creation for class.

For another class, I still need to make a presentation on Combinatorics. Then it's all over but the grading - for a week.

Time for bed. ;)
• 08-25-2013, 01:19 AM
Tscheuss
Combinatorics again.
I think some of it is simple. We seem to just be working with permutations and combinations. I have most of this assignment sketched out, but the history part is going to be a pain. Not that I can't find anything; I have found too much, and I need to trim it down. The trouble is finding a nice way to do it.

This guy in class seems to just know this stuff. Like, why is he even in class? He makes it look easy, and I wish I could soak it up like he does. *sigh*

Btw, magic squares in I-Jing 12th century? Wow. :)
• 08-25-2013, 09:41 PM
Tscheuss
Hmmm
Schoolwork.

Skullwork.

Skål :D
• 08-25-2013, 11:53 PM
Tscheuss
Finally
Big stuff is done and ready to turn in. Nothing left for this last week but some blah, blah, blah. ;)

Get to start the grind all over again in September.
• 09-01-2013, 01:27 PM
Tscheuss
Quote:

Originally Posted by Tscheuss
Had a question on final that didn't look right:

Which SQL keyword is not used with a SELECT statement?

• FROM
• INSERT
• PUT
• UPDATE

Does this look strange to anyone else?

BTW: PUT is not a SQL keyword. Only FROM is used with a SELECT statement, but a SELECT statement can be nested inside an INSERT or UPDATE statement. I still think the question could have been worded better. :p
• 09-01-2013, 01:39 PM
Tscheuss