I need help with my homework =/

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

Moderator: Talkative People

Post Reply
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

I need help with my homework =/

Post by MarauderIIC »

For my AI class...
I need to create ground clauses (sentences with no variables, all terms separated by OR) to prove a contradiction (like Q AND !Q) from
where C is a constant symbol
R(C)
!R(f(C))
R(f3(C))
[1] R(x) v !R(f3(x))
[2] !R(x) v R(f2(x))

Where f# simply is shorthand for f( f( ... ) ) # times [so f2(x) is f(f(x))]
The original is at
http://www.cs.uky.edu/~mirek/class-mate ... hmwk-8.pdf #2, the first question regarding it.
The f2 gives me trouble. I want to say, like, (don't think I can even do this though)
[2] !R(x) v R(f2(x)) gives me !R(f(C)) v R(f3(C))
because I couldn't get anywhere with
!R(C) v R(f2(C)) but maybe I was doing it wrong.

And then if I used
[1] R(x) v !R(f3(x)) to give, say, R(C) v !R(f3(C)) ... well, I wind up with !R(f(C)) and R(C) which are both given as true, when I need to prove false ...

But R(f(C)) v !R(f4(C)) from [1] leaves me with an f4. Which is f2(f2(C)) where f2(.. is what, D? I dunno. A guide in the right direction would be nice.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: I need help with my homework =/

Post by MarauderIIC »

Also I need to get this question right so I can get a high enough grade on the hw to get an A in the class and be exempt from the final :(
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: I need help with my homework =/

Post by avansc »

thats AI, lookst like dicreet math to me. i havent done that for years. i might have a solution manual for you.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: I need help with my homework =/

Post by MarauderIIC »

I haven't found his exact problems anywhere else on the internet.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: I need help with my homework =/

Post by avansc »

i have a teachers sulotion manual. i might not get the specific one, but something close.

im looking, here is some links that might help.

http://www.philosophypages.com/lg/e11a.htm
http://www.mathpath.org/proof/proof.inference.htm
http://www.cs.odu.edu/~toida/nerzic/con ... infer.html

you have to first make a premis, then
you need to use inference rules to make the statements say something else.
and equate it to your premist.

and add QED. lolz, (little joke im not sure if you'll get it.)
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: I need help with my homework =/

Post by MarauderIIC »

I'm assuming R is a relation, is it valid for me to ground x as !R(C), for instance?
Edit: Ah, I have to use resolution (essentially AND things together) to obtain a contradiction, and I have to ground all clauses (make them have no variable symbols, since the clauses given are universally quantified), per problem. My hitch is what to ground x as.
Sorry, I didn't rewrite the entire thing. But I think that covers the rest of it.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: I need help with my homework =/

Post by MarauderIIC »

Something like this. I'm not sure I can ground x with a relation [R] (sort of think that I can't)...
temp.JPG
temp.JPG (20.81 KiB) Viewed 614 times
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: I need help with my homework =/

Post by MarauderIIC »

Or... is it possible for me to put two different things in for two different x's in the same clause? I don't think so, right?

Edit: Also, for the second part of #2, if someone knows how to resolve with unification ({a/b} reads as "use a for b") or wants some other example of resolution, I'm pretty confident on this one (this also involves the 'standardize variables apart' where you rename variables that you resolve together, so the x's are renamed to something that the formula they're being resolved into does not have)
temp.JPG
temp.JPG (21.22 KiB) Viewed 611 times
Last edited by MarauderIIC on Sun Dec 07, 2008 7:39 pm, edited 4 times in total.
Reason: :P
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: I need help with my homework =/

Post by MarauderIIC »

Okay, I think this is it
(x as C, x as f(C), x as C, x as f2(C). Grounded them twice: should be valid since these are for all x)
temp.JPG
temp.JPG (23.02 KiB) Viewed 608 times
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: I need help with my homework =/

Post by dandymcgee »

WTF is that?! Lol.. good luck man. :shock: :shock:
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: I need help with my homework =/

Post by MarauderIIC »

That was it. I got a 100 on this homework (and a 94 in the class, A, exempt from final).
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: I need help with my homework =/

Post by dandymcgee »

Congratulations Marauder! :cheers:
Falco Girgis wrote:It is imperative that I can broadcast my narcissistic commit strings to the Twitter! Tweet Tweet, bitches! :twisted:
Post Reply