<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2025-10-04:4245574</id>
  <title>koku's life journal</title>
  <subtitle>studying notes and such</subtitle>
  <author>
    <name>Koku!</name>
  </author>
  <link rel="alternate" type="text/html" href="https://kokulife.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://kokulife.dreamwidth.org/data/atom"/>
  <updated>2025-11-18T12:03:00Z</updated>
  <dw:journal username="kokulife" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2025-10-04:4245574:7618</id>
    <link rel="alternate" type="text/html" href="https://kokulife.dreamwidth.org/7618.html"/>
    <link rel="self" type="text/xml" href="https://kokulife.dreamwidth.org/data/atom/?itemid=7618"/>
    <title>Tuesday 2025-11-18</title>
    <published>2025-11-18T12:03:00Z</published>
    <updated>2025-11-18T12:03:00Z</updated>
    <category term="matrix multiplication"/>
    <category term="file reading"/>
    <category term="nprg062"/>
    <category term="recursion"/>
    <category term="nprg030"/>
    <category term="fibonacci"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">&lt;p&gt;NPRG062 (Introduction to algorithms) [lecture] - recursion, see also: today's daily message, including the classic example of the fibonacci sequence, how to deal with unnecessary calculation of the same things by using caching or by building from the bottom up and the best way to do it, which uses matrices, you raise the matrix ((0,1),(1,1)) to the nth power and then multiply by the vector (f0,f1), you can use the quick raising to the power by using the binary representation of n, gosh this is a long entry, we also did recursive generation, like how to break up a number into all the sums it can be made of&lt;/p&gt;&lt;br /&gt;&lt;p&gt;NPRG030 (Programming 1) [lecture] - int("number") isn't actually a function, it's a constructor! most of the class was focused on working with files, things i know and we did during the tutorial previously.. also the way strings are interpreted in memory (they terminate at a specific char, like c strings) and the walrus operator := which has a silly name methinks&lt;/p&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;koku daily message:&lt;br /&gt;recursion, see also: recursion&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=kokulife&amp;ditemid=7618" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
