Rosalind Problems: Fibonacci, Rabbits and Recurrence Relations

  Рет қаралды 8,845

rebelScience

rebelScience

Күн бұрын

Пікірлер: 20
@michaelmoore7568
@michaelmoore7568 3 ай бұрын
this is one of the most information rich tutorial channels that I've ever seen
@rebelScience
@rebelScience 3 ай бұрын
Thank you so much! Glad you find the content valuable!
@kroes3236
@kroes3236 4 жыл бұрын
I'm enjoying this series so much! I had already done some of the problems but it's very nice to see your explanation and programming.
@rebelScience
@rebelScience 4 жыл бұрын
Thank you so much.
@dlearhasan8899
@dlearhasan8899 4 жыл бұрын
Dear RebelCoder this is my coding to solve Rabbits and Recurrence relations month_total_pair = {1: 1, 2: 1} n = int(input("Please Enter Month! : N = ")) k = int(input("Please Enter litter of rabbit pairs! : k = ")) if n == 1 or n == 2: print(month_total_pair[n]) else: for x in range(3, 41): total_pair = month_total_pair[x-1] + month_total_pair[x-2] * k month_total_pair.update({x: total_pair}) print(month_total_pair[n])
@sohamshirolkar
@sohamshirolkar 4 жыл бұрын
great explanation..keep up the good work..
@rusbiology3460
@rusbiology3460 4 жыл бұрын
спасибо за видео!
@LumTheAlien
@LumTheAlien Жыл бұрын
How do you do a bulk rename at 6:59? edit: Okay I see you do it by right clicking on the word you wish to rename and hitting rename symbol.
@ВасяИванов-щ6з
@ВасяИванов-щ6з 2 жыл бұрын
it works for final "children" value count, but matching visualisation and code "parents" looks little bit odd.
@ВасяИванов-щ6з
@ВасяИванов-щ6з 2 жыл бұрын
my point is: 1) initial values: children, parents = 1, 0 2) inside for loop: children, parents = parents * offspring, children + parents 3) return (children + parents)
@elshroomness
@elshroomness 2 жыл бұрын
@@ВасяИванов-щ6з ohhh I had a question about this! thank you!
@lstein8670
@lstein8670 4 жыл бұрын
are you taking a break from making video?
@rebelScience
@rebelScience 4 жыл бұрын
Nope. I was working on something else, related to Bioinformatics. Expect new videos very soon.
@kroes3236
@kroes3236 4 жыл бұрын
@@rebelScience nice
@rusbiology3460
@rusbiology3460 4 жыл бұрын
Do you mind if I translate your videos into Russian and upload them to KZbin?
@elshroomness
@elshroomness 2 жыл бұрын
why did you start with parent = 1, and child = 1, when in the first month there is only 1 child and 0 parents?
@elshroomness
@elshroomness 2 жыл бұрын
apparently there are different ways of counting the resulting bunnies after a given number of months. Below is the code that was mentioned in the video that starts with parent and children starting at 1. def fib_bunnies2(months,offspring): parent,child = 1,1 for itr in range(months - 1): child,parent = parent, parent + (child * offspring) return child fib_bunnies2(5,2) However, this implementation does not reflect the diagram that was show below the code in the video. The code below shows how the code should be written to match the diagram: def fib_bunnies(months, offspring): child, parents = 1, 0 for itr in range(months - 1): child, parents = parents * offspring, child + parents return (child + parents) fib_bunnies(5,2) Notice that inside the for loop there is different ways of incrementing the child and parent variables to result to the same result. credit goes to @Вася Иванов for their comment in this video and helping realize a hidden nuance in recursion. Thanks!
@alauddinany457
@alauddinany457 4 жыл бұрын
go ahead
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
How to Fight a Gross Man 😡
00:19
Alan Chikin Chow
Рет қаралды 20 МЛН
Creative Justice at the Checkout: Bananas and Eggs Showdown #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 33 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 77 МЛН
From Python to Rust. Part 1
31:14
rebelScience
Рет қаралды 12 М.
Bioinformatics Tips & Tricks: Hamming Distance
12:57
rebelScience
Рет қаралды 4,9 М.
From Python to Rust. Part 3: A Dictionary and a HashMap.
13:57
rebelScience
Рет қаралды 3,2 М.
Genome Toolkit. Part 2.1: identifying, fixing, and testing a bug
11:45
From Python to Rust. Part 2: Strings, Functions & Crates/Modules.
31:33
Bioinformatics Tools Programming in Python with Qt. Part 1.
21:23
rebelScience
Рет қаралды 3,9 М.
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33