Mom Got me an Early Birthday Present :)

Spoiler: book
RDlz4iQ.jpg

It's awesome. pseudocode for easy transference to C++ and Java and python.
Spoiler: book
RDlz4iQ.jpg

It's awesome. pseudocode for easy transference to C++ and Java and python.
That's great! Is this thread in Game development because of how you will be making games with that knowledge?
It says I will learn to make efficient algorithms on my own. also it might be the wrong place, I'm sleepy
It says I will learn to create efficient algorithms. might be wrong place, Im so sleepy
'General Discussion' is definitely not the place.
Moved to: General Lounge
Congratulations 😀

That was my first algorithm books. It brings back fond memories and lots of hair pulling ^^
'General Discussion' is definitely not the place.
Moved to: General Lounge
That was what I thought 😀
Congratulations 😀

That was my first algorithm books. It brings back fond memories and lots of hair pulling ^^

😀 Im almost done with the first chapter of part 1. I tired the exercises last night but was too tired to really make the answers solid. hull curves and the likes. and NPs.

Also, it seems by chance I chose the correct coarse. I remember wanting to learn programming from a school. when I googled it for MIT coarseware, Dynamic Programming turned up. And I looked into the coarses and well intro to algorithms seemed awesome.

I used to tutor IU students in probability, and I know some basic calc still, kind of dusty on it, and I have some programming exp, so this coarse pre-reqs are all met.

now getting the pseudo code into ruby or something else might be the hair pulling out I imagine.

Ugh. So I don't know how to handle large numbers in ruby very well.

only one.PNG


I don't think those answers are correct and I'm not certain how to find the real solutions. I used a scaling factor

for instance, the binary log of n I used


Code:
def solve(t, factor)
  #n = 2**t
  t = t / factor
  n1 = 2 ** (t)
  n1 *= factor
  n1 = Math.log10(n1).to_f
  return n1
end

puts solve(1000, 100)
puts solve(60*1000, 1000)
puts solve(60*1000*60, 10000)
puts solve(60*1000*60*24, 10000)
puts solve(60*1000*60*24*30, 100000)
puts solve(60*1000*60*24*30*365, 1000000)
puts solve(60*1000*60*24*30*365*100, 1000000000)

I'm hoping someone can offer advice on it.

Original thread: https://forums.rpgmakerweb.com/threads/mom-got-me-an-early-birthday-present.89780/