<?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-11T12:54:56Z</updated>
  <dw:journal username="kokulife" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2025-10-04:4245574:6779</id>
    <link rel="alternate" type="text/html" href="https://kokulife.dreamwidth.org/6779.html"/>
    <link rel="self" type="text/xml" href="https://kokulife.dreamwidth.org/data/atom/?itemid=6779"/>
    <title>Tuesday 2025-11-11</title>
    <published>2025-11-11T12:54:56Z</published>
    <updated>2025-11-11T12:54:56Z</updated>
    <category term="duck typing"/>
    <category term="heapsort"/>
    <category term="binary heap"/>
    <category term="nprg062"/>
    <category term="oop"/>
    <category term="dictionary"/>
    <category term="sorting"/>
    <category term="linked list"/>
    <category term="heap"/>
    <category term="nprg030"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">&lt;p&gt;NPRG062 (Introduction to algorithms) [lecture] - the (binary) heap! how to implement it using a list, indexing it from 1 is better because then the index of the parent node is n/2 rounded down and the index of its children is 2n and 2n+1, heap sort as example of a sort that has O(nlog(n)) &lt;i&gt;and&lt;/i&gt; is in-place, dictionary and how to deal with a collision caused by the hashing function not being injective&lt;/p&gt;&lt;br /&gt;&lt;p&gt;NPRG030 (Programming 1) [lecture] - defined a class that uses a linked list to create a double sided queue and shows how to use assert, then some oop theory, which i know.. python has duck typing, meaning that "if it walks like a duck and it quacks like a duck, then it must be a duck", the teacher gave an example from his life where he got on a filming van during the filming of the movie amadeus and he did what he was told to, so he has a small role in the movie, despite not being cast in it&lt;/p&gt;&lt;br /&gt;&lt;hr&gt;&lt;br /&gt;koku daily message:&lt;br /&gt;stirling approximation&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=kokulife&amp;ditemid=6779" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
