<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>koku&apos;s life journal</title>
  <link>https://kokulife.dreamwidth.org/</link>
  <description>koku&apos;s life journal - Dreamwidth Studios</description>
  <lastBuildDate>Tue, 18 Nov 2025 12:03:00 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>kokulife</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/18093858/4245574</url>
    <title>koku&apos;s life journal</title>
    <link>https://kokulife.dreamwidth.org/</link>
    <width>100</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>https://kokulife.dreamwidth.org/7618.html</guid>
  <pubDate>Tue, 18 Nov 2025 12:03:00 GMT</pubDate>
  <title>Tuesday 2025-11-18</title>
  <link>https://kokulife.dreamwidth.org/7618.html</link>
  <description>&lt;p&gt;NPRG062 (Introduction to algorithms) [lecture] - recursion, see also: today&apos;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(&quot;number&quot;) isn&apos;t actually a function, it&apos;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=&quot;https://www.dreamwidth.org/tools/commentcount?user=kokulife&amp;ditemid=7618&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://kokulife.dreamwidth.org/7618.html</comments>
  <category>fibonacci</category>
  <category>matrix multiplication</category>
  <category>recursion</category>
  <category>nprg030</category>
  <category>file reading</category>
  <category>nprg062</category>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
</channel>
</rss>
