discrete structures

Random irrelevance that just didn't fit into other forums. Talk about anything.

Moderator: Talkative People

Post Reply
User avatar
Levio91
Chaos Rift Regular
Chaos Rift Regular
Posts: 119
Joined: Thu Nov 06, 2008 9:50 pm

discrete structures

Post by Levio91 »

I am taking a discrete structures class but I just cant learn how truth tables work. Ill just leave this here and hope someone can help me.

feel free to download the slides we have to study.(I deleted The link because im afraid ill get in trouble for linking to college materials) zomg free I dont know if its just me but it takes a long time to load the page.
Last edited by Levio91 on Wed Jan 14, 2009 8:25 pm, edited 1 time in total.
"Criticism is something you can avoid easily by saying nothing, doing nothing, and being nothing. " - Aristotle

http://www.facebook.com/profile.php?id= ... ef=profile
Image
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: discrete structures

Post by MarauderIIC »

PDF's not liking me.
1 and 1 is 1
1 and 0 is 0
0 and 1 is 0
0 and 0 is 0

Truth table:
a__|__b__|__a AND b [a and b must be 1 to get 1]
1__|__1__|__1
1__|__0__|__0
0__|__1__|__0
0__|__0__|__0

1 or 1 is 1
1 or 0 is 1
0 or 1 is 1
0 or 0 is 0

Truth table:
a__|__b__|__a OR b [a or b or both are 1 to get 1]
1__|__1__|__1
1__|__0__|__1
0__|__1__|__1
0__|__0__|__0

a implies b is logically equivalent to "(NOT a) OR b" -- harder to read this way, but easier to compute.
a__|__b__|__!a_|__!a OR b
1__|__1__|__0__|__1
1__|__0__|__0__|__0
0__|__1__|__1__|__1
0__|__0__|__1__|__1
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
Moosader
Game Developer
Game Developer
Posts: 1081
Joined: Wed May 07, 2008 12:29 am
Current Project: Find out at: http://www.youtube.com/coderrach
Favorite Gaming Platforms: PC, NES, SNES, PS2, PS1, DS, PSP, X360, WII
Programming Language of Choice: C++
Location: Kansas City
Contact:

Re: discrete structures

Post by Moosader »

You find truth tables difficult? :/

I guess you're a freshman for a reason.


/me slacking off in senior level classes.
User avatar
Levio91
Chaos Rift Regular
Chaos Rift Regular
Posts: 119
Joined: Thu Nov 06, 2008 9:50 pm

Re: discrete structures

Post by Levio91 »

the reason the pdf takes so long is because is like 100 megs in slides. I deleted the link because im pretty sure they have google analytics then theyll know ive been linking to the class site.
"Criticism is something you can avoid easily by saying nothing, doing nothing, and being nothing. " - Aristotle

http://www.facebook.com/profile.php?id= ... ef=profile
Image
User avatar
sparda
Chaos Rift Junior
Chaos Rift Junior
Posts: 291
Joined: Tue Sep 23, 2008 3:54 pm

Re: discrete structures

Post by sparda »

Just think of the truth table in a straight forward manner and it will make sense.

Two basic examples:

AND asks for both propositional variables to be true, in order for the conclusion to be true. So:
T AND T = T
T AND F = F
F AND T = F
F AND F = F

OR only asks for one of the two to be true, in order for the conclusion to be true. So:
T OR T = T
T OR F = T
F OR T = T
F OR F = F

It could get a little tricky when you throw other logical connectives into the mix; eg implications,
equivalences, and then apply these to logical proofs, while keeping track of their rules of inference, etc.
Not to mention quantifications. You have some work to do Levio ;)

Probably one of the only person who can answer this is Marauder (CS major), but I was curious to know if you any guys can figure out the name of this rule of inference:

p -> q
q -> r
_____
p -> r

Hint: its a *gism*
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: discrete structures

Post by Falco Girgis »

Intro to Discrete Structures? Isn't that CS214? You a sophomore?

I took it, didn't study or do my homework, fucked up the first test, then dropped a few semesters ago. I made some bad choices, mostly due to being totally in love.

Truth tables are so much cooler in circuits. They aren't completely abstract. You can see "oh damn, my shit outputs a positive voltage here." Though I suppose you could write the equivalent in code and say "oh damn, this condition evaluated to true." But hey, I'm CPE, I totally do both. ;)
User avatar
Levio91
Chaos Rift Regular
Chaos Rift Regular
Posts: 119
Joined: Thu Nov 06, 2008 9:50 pm

Re: discrete structures

Post by Levio91 »

GyroVorbis wrote:Intro to Discrete Structures? Isn't that CS214? You a sophomore?

I took it, didn't study or do my homework, fucked up the first test, then dropped a few semesters ago. I made some bad choices, mostly due to being totally in love.

Truth tables are so much cooler in circuits. They aren't completely abstract. You can see "oh damn, my shit outputs a positive voltage here." Though I suppose you could write the equivalent in code and say "oh damn, this condition evaluated to true." But hey, I'm CPE, I totally do both. ;)
well my advisor who helps me pick my schedule is also one of the main comp science proffessors so when I told him that my algebra teacher advised me to take take a algebra prerequisite he said i should just get some tutoring and take it next year. So he signed a corequisite paper that lets me take the class my freshman year.
"Criticism is something you can avoid easily by saying nothing, doing nothing, and being nothing. " - Aristotle

http://www.facebook.com/profile.php?id= ... ef=profile
Image
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: discrete structures

Post by Falco Girgis »

Levio91 wrote:
GyroVorbis wrote:Intro to Discrete Structures? Isn't that CS214? You a sophomore?

I took it, didn't study or do my homework, fucked up the first test, then dropped a few semesters ago. I made some bad choices, mostly due to being totally in love.

Truth tables are so much cooler in circuits. They aren't completely abstract. You can see "oh damn, my shit outputs a positive voltage here." Though I suppose you could write the equivalent in code and say "oh damn, this condition evaluated to true." But hey, I'm CPE, I totally do both. ;)
well my advisor who helps me pick my schedule is also one of the main comp science proffessors so when I told him that my algebra teacher advised me to take take a algebra prerequisite he said i should just get some tutoring and take it next year. So he signed a corequisite paper that lets me take the class my freshman year.
Wow, I think Calclulus B is probably a prereq at my school.
User avatar
Levio91
Chaos Rift Regular
Chaos Rift Regular
Posts: 119
Joined: Thu Nov 06, 2008 9:50 pm

Re: discrete structures

Post by Levio91 »

GyroVorbis wrote:
Levio91 wrote:
GyroVorbis wrote:Intro to Discrete Structures? Isn't that CS214? You a sophomore?

I took it, didn't study or do my homework, fucked up the first test, then dropped a few semesters ago. I made some bad choices, mostly due to being totally in love.

Truth tables are so much cooler in circuits. They aren't completely abstract. You can see "oh damn, my shit outputs a positive voltage here." Though I suppose you could write the equivalent in code and say "oh damn, this condition evaluated to true." But hey, I'm CPE, I totally do both. ;)
well my advisor who helps me pick my schedule is also one of the main comp science proffessors so when I told him that my algebra teacher advised me to take take a algebra prerequisite he said i should just get some tutoring and take it next year. So he signed a corequisite paper that lets me take the class my freshman year.
Wow, I think Calclulus B is probably a prereq at my school.
Isnt calculus harder than algebra? Math is my weak link.
"Criticism is something you can avoid easily by saying nothing, doing nothing, and being nothing. " - Aristotle

http://www.facebook.com/profile.php?id= ... ef=profile
Image
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: discrete structures

Post by Falco Girgis »

About 3 classes harder. Aka "way the hell harder."
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: discrete structures

Post by MarauderIIC »

If you aren't 100% on your algebra it'll bite you in your calculus.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
dandymcgee
ES Beta Backer
ES Beta Backer
Posts: 4709
Joined: Tue Apr 29, 2008 3:24 pm
Current Project: https://github.com/dbechrd/RicoTech
Favorite Gaming Platforms: NES, Sega Genesis, PS2, PC
Programming Language of Choice: C
Location: San Francisco
Contact:

Re: discrete structures

Post by dandymcgee »

Calc B is a prereq for getting into your school Falco? Algebra II is my highest level of math, only reason I didn't take Trig or Calc is because I slacked on homework. :(
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
Levio91
Chaos Rift Regular
Chaos Rift Regular
Posts: 119
Joined: Thu Nov 06, 2008 9:50 pm

Re: discrete structures

Post by Levio91 »

I had a test.... It was really easy there were over 25 questions and i only got 3 wrong... I got those wrong because I didnt know what the upside down u looking symbol mmeans ( I still dont ) but I overstudied!!!!!!!!! I know too much!

Now that im caught up with the rest of the class its actually one of the classes I enjoy.
"Criticism is something you can avoid easily by saying nothing, doing nothing, and being nothing. " - Aristotle

http://www.facebook.com/profile.php?id= ... ef=profile
Image
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: discrete structures

Post by MarauderIIC »

intersection

A and B are sets
A = {1, 2, 3, {7, 8}, {9, 0} }
B = {3, 7, {9, 0} }

A intersect B is
{3, {9, 0} }

A simpler example:
C and D are sets:

C = {1, 2, 3, 4, 5, 6, 7, 8, 9}
D = {7, 2}
C intersect D is
{2, 7}
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
Post Reply