Partial Recursive Functions 4: Primitive Recursion

  Рет қаралды 36,484

Hackers at Cambridge

Hackers at Cambridge

Күн бұрын

Пікірлер: 37
@conorvaneden
@conorvaneden Жыл бұрын
thank you, this was a great video. it took me 2 minutes into the video to understand primitive recursion and I've been struggling with this for 2 weeks in my own lecture. KZbin university all the way!
@anissahacene7840
@anissahacene7840 6 жыл бұрын
Thank you for saving my life a few hours before my test.
@elmontassirrehaiem1757
@elmontassirrehaiem1757 3 жыл бұрын
logique fondamentale
@dobrikgeorgiev6088
@dobrikgeorgiev6088 6 жыл бұрын
No matter what you do, be sure to make more videos
@EdaGhazi
@EdaGhazi 11 ай бұрын
Thank you for this! I wasn't able to completely grasp the concept in my lecture, but this has definitely simplified it! :)
@zephyrliu8833
@zephyrliu8833 6 жыл бұрын
Mark at 12:13 , Defined addition in a world where addition doesn't exist. Waiting you giving lectures on non primitive recursions, and define hyperoperations after that. Thanks a lot!
@BreakerGandalfStyle
@BreakerGandalfStyle 6 жыл бұрын
Dude that video is awesome! It's by far the best about the topic I have ever seen and it's helping me so much for my exam in theoretical computer since in Leipzig!
@emiainscough2945
@emiainscough2945 Жыл бұрын
Thank you so much for this! I have a worksheet due in a few hours, and you might have just saved me from failing!
@MrBetaJacques
@MrBetaJacques 6 жыл бұрын
Thank you very much Jared. Very well explained
@denisedee7641
@denisedee7641 6 жыл бұрын
Thank you soooooooo much! The explanation was perfect.
@honeyfly400
@honeyfly400 6 жыл бұрын
Just can’t be better and more clearly!
@VeeruSingh-ww4nr
@VeeruSingh-ww4nr 5 жыл бұрын
THank You!!! Great Video
@warnford
@warnford 6 жыл бұрын
really good - - many thanks
@carsondm
@carsondm 6 жыл бұрын
These videos are great! Really helping me out. At 20:40, you let g=proj^1_1, but it should be proj^2_1, right? Since we're taking the first item from a list of 2
@HackersatCambridge
@HackersatCambridge 6 жыл бұрын
Correct! Thanks for catching this
@vansuny
@vansuny 4 жыл бұрын
Thank you so much. This video really helped in understanding the concept. Indeed , it was neat! 😉
@taniushkaaa
@taniushkaaa 6 жыл бұрын
Thank you for another great lecture. Could you please post solutions or at least answers to the challenge questions? Thank you in advance.
@klam77
@klam77 6 жыл бұрын
you guys should help us with.....LAMBDA CALCULUS (gasp!).....it would be nice! thanx.
@syed9576
@syed9576 4 жыл бұрын
Im confused. If in the primitive recursive world you don't have the "add" defined, then how can you use it in the successor function to get the next number?
@فيافيالتأملمهمةإصلاح
@فيافيالتأملمهمةإصلاح 3 жыл бұрын
I was thinking about the same thing 😂
@thomaspickin9376
@thomaspickin9376 3 жыл бұрын
The idea is the successor function is an abstract function, how you get the next number isn't important. You could have a list of all numbers stored somewhere and succ(n) gives you the one after n in that list then you don't need a + symbol or addition in the definition. All that's important is it gives you the number after n (he probably just wrote x+1 to make it easier to understand).
@wombaumerklart7938
@wombaumerklart7938 4 жыл бұрын
Thank you, that was very understandable :)
@michaelnovak9412
@michaelnovak9412 5 жыл бұрын
My solution to the challenge: sub = p^1 ( proj^1_1 , add ∘ [ pred∘proj^3_3 , succ∘proj^3_2 ] ) = p^1 ( proj^1_1 , p^1(proj^1_1 , succ∘proj^3_3) ∘ [ p^0(zero^0, proj^2_1)∘proj^3_3 , succ∘proj^3_2 ] ) isZero = p^0 ( succ∘zero^0 , zero^2 ) Edit: After watching the last episode of this series, I saw there's a better way to define isZero: isZero = sub ∘ [ succ∘zero^1 , proj^1_1 ]
@qed11
@qed11 3 жыл бұрын
I got sub = p^1 (proj^1_1 , pred ∘ [ proj^3_3 ] )
@BelegaerTheGreat
@BelegaerTheGreat Жыл бұрын
Why not p^2?
@BelegaerTheGreat
@BelegaerTheGreat Жыл бұрын
Everything has been very well defined here, except the Rho.
@Cr0oKeDSp1r1t
@Cr0oKeDSp1r1t 4 жыл бұрын
this video cured my racism and my cancer
@joseville
@joseville 3 жыл бұрын
When you say primitive recursion with parameter 1, what does that mean? How do we apply the primitive recursion functions? I.e. how would we apply pred to 3 to get 2? pred = p^0(zero^0, proj^1_1) pred(3) = ???
@krystaljinluma
@krystaljinluma 3 жыл бұрын
Why do we have to write g as h(x,y+1)=g(x,y,h(x,y))? We never use the second term y in any of the examples, it seems useless to me. Because h(x,y) means the result from the last recursion, g(x,y,h(x,y)) is trying to do something using the current input and last recursion result, but it appears to me that y never is needed. We are always doing proj3_1, project3_3... when are we ever going to use y?
@jeffreydelossantos8667
@jeffreydelossantos8667 6 жыл бұрын
I'm not good at math, I dont understand why the recursive case of addition is: "add(x, y+1)", why its not: "add(x, y-1)" since we're going down to the base case?
@funkymaniak
@funkymaniak 6 жыл бұрын
You are correct that we are heading down to the base case. The video states (using the definition of primitive recursion): add(x, y+1) = g(x, y, add(x, y)) Notice that the argument 'y' to the add function on the right hand side is one less than the argument 'y+1' to the add function on the left hand side. This is how we make our way down towards the base case.
@nehapal4793
@nehapal4793 4 жыл бұрын
can you tell how to solve for subtraction?
@top10-spot
@top10-spot 4 жыл бұрын
i like it at all but why not say f=proj[2,2] rather f=zero' in example 2(multiplication)
@qed11
@qed11 3 жыл бұрын
By definition you drop the last argument, so f must have 1 argument. Recursion is similar to dropping the last argument when such argument is 0
@VeeruSingh-ww4nr
@VeeruSingh-ww4nr 5 жыл бұрын
Why the fuck my uni professors do not teach like you
@فيافيالتأملمهمةإصلاح
@فيافيالتأملمهمةإصلاح 3 жыл бұрын
great explanation,but I have to say this subject sounds boring af 🤔
@thomaspickin9376
@thomaspickin9376 3 жыл бұрын
Computability theory can be very interesting if you're into that kind of mathematical abstraction and understanding what can and can't be computed, growth of algorithms, proving theorems etc. If you only care about learning how to write code then it might not be for you.
Partial Recursive Functions 5: Minimisation
18:29
Hackers at Cambridge
Рет қаралды 12 М.
Partial Recursive Functions 1: What's a function?
6:14
Hackers at Cambridge
Рет қаралды 18 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Partial Recursive Functions 3: Composition
12:12
Hackers at Cambridge
Рет қаралды 11 М.
Math 557 - Primitive recursive functions
14:39
Jan Reimann
Рет қаралды 15 М.
Turing & The Halting Problem - Computerphile
6:14
Computerphile
Рет қаралды 866 М.
Partial Recursive Functions 2: The basic functions
6:28
Hackers at Cambridge
Рет қаралды 10 М.
Hash Tables and Hash Functions
13:56
Computer Science Lessons
Рет қаралды 1,6 МЛН
Make games quickly with LÖVE
1:12:58
Hackers at Cambridge
Рет қаралды 45 М.
Lec36 Primitive Recursive Functions And Related Theory
16:13
Simplified By Sahitya
Рет қаралды 25 М.
Turing Machines Explained - Computerphile
5:25
Computerphile
Рет қаралды 1,1 МЛН