Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 21:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Induktionsbeweis

Discussion on Induktionsbeweis within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
anubit's Avatar
 
elite*gold: 97
Join Date: Jun 2010
Posts: 3,145
Received Thanks: 1,051
Induktionsbeweis

Guten Tag liebe Coder,

heute wende ich mich an euch weil ich einfach nicht mehr weiter weiß.

Ich studiere Informatik und habe gerade ein paar Schwierigkeiten mit einem Induktionsbeweis.

Vorgegeben ist folgende endrekursive Definition von Addition:

plus(x,0) = 0
plus(x,S(y)) = plus(S(x),y) dabei sei gesagt, dass S(x) der Nachfolger von x ist also x+1

Nun soll ich durch Induktion zeigen, dass:

plus(x,y) = x+y


Mein Problem liegt darin, dass ich nicht weiß wie ich in dem Induktionsschritt von der Funktion plus auf x+y kommen soll. Jedoch bin ich gerade auf eine Lösung gestoßen, jedoch weiß ich nicht ob diese erlaubt ist:

Induktion über x

IA: plus(x,0) = x = x+0

IS: Sei y=1

plus(x,y) = plus(x,1) = plus(S(x), 0) = S(x) = x+1 = x+y


Nun ist meine Frage, ob ich in dem Induktionsschritt einfach sagen darf, dass y=1 ist. Und falls nicht habe ich einfach überhaupt keine Ahnung was ich noch machen soll.

Ich hoffe einfach jemand kennt sich gut damit aus und kann mir weiterhelfen!
anubit is offline  
Old 04/26/2015, 15:07   #2
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Du musst doch für den Induktionsstart mindestens eine Variable setzen und dann alles für n+1 (n Element |N) einsetzen und rauskürzen. Demnach müsste es erlaubt sein, ansonsten hast du ja keinen Induktionsanfang.
alpines is offline  
Old 04/26/2015, 18:27   #3
 
Schlüsselbein's Avatar
 
elite*gold: 0
Join Date: Feb 2013
Posts: 1,137
Received Thanks: 869
Wenn plus(x,0) = 0 für beliebige x, dann ist auch plus(S(x), 0) = 0.

Sollst du nun eine Induktion über x oder y machen? Werde nicht ganz schlau draus.
Schlüsselbein is offline  
Reply




All times are GMT +1. The time now is 21:02.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.