Problem set 1

water, mario, greedyの3課題 特にgreedyは、お釣りの硬貨が何枚になるかを算出する課題。GetFloat(): cs50.hに含まれるfloatをgetするfunction。こちらでfloatをgetしても、そのfloatは 入力された桁数以降に00000...と0が続くもの(正確な値)ではなく、 限…

Week4 Lecture

VWが一部の自動車に、車の(環境など?)テスト時にのみ、基準をパスするよう走行させるプログラムを積んでいた、という話。 google trick: recursion, anagram, askew, do a barrel rollをググるとおもしろい。 CS50IDE中のDebuggerの使用方法について。

Week3 Lecture, continued

object code: zeros and onesを返すもの 前半の数学チックな話はbeyond my understanding... 最後にすこし Bitwise operators の話。Codeacademy でも触れていた様な。5つのoperatorsについて解説していた。1. & Ampersand operator: true & trueなどtrue/fa…

Week3 Lecture

Big o = O, upper bound of whatever it costs algorithms, i.e. maximum time to run one algorithm. O(n^2)のように使用し、最大で変数nの2乗オーダーの時間が掛かるということ。 Omega = Lower bound Bubble sort, selection sort, insertion sort, merge…

Week2 Lecture, continued

1. clang -oの-oとは 2. command line arguments 3. command line argument programレクチャーの半分が2, 3の説明に費やされており、6割程分かったのだけど、 結局command line argumentて何よ。Malanがおやすみであまり面白くなかった…代理の先生、申し訳な…

Week2 Lecture

・前半は忘れたけれど、後半は関数のお話。 ・セグメンテーション違反がどういうものか、結局分からず。メモリーの問題?アクセスすべきでない場所にアクセスしてしまっている? ・cryptography: 暗号法

Week1 Lecture, continued

要点: コンピューターの限界?整数の割り算がヒトのほうが正確に出来るという話、 プログラムを書くのは簡単なのに生じたバグが時に文字通りfatalである話、 intにはbitの制限がある?それに伴って起きうるバグの話、など。 intuitive = 直感的な、void = a…

Week1 Lecture

ジムで走りながらだと、手を動かすことができないので、 Week0演習前にWeek1の先取り。clangのくだりがよくわからなかったけれど…次回に続く。

Week0 Lecture, continued

パフォーマンス色がつよく、既に見たことがあるためすっ飛ばして視聴。明日で大学病院での整形外科実習はさいご、やっぱり整形外科や肩関節の解剖は難しいなぁ。

Week0 Lecture

気になったこと:マーク・ザッカーバーグ氏が"If I wanna wish Happy birthday for everyone on FB, I need millions of years. But if I do this by programming, it will save a lot of time." 正しいのだが、味気ないような笑 それでも、地球上の7人に1人…

ひとつの computer science courseを修了する

プログラミングを勉強するといったからには、当面の目標を設定しておく。当面の目標:「ひとつの computer science courseを修了すること」 使用する教材はこちら www.edx.orgいっちょ前にリンクを載せてみたものの、 実はわたし、このCS50、これまでに2度挫…

親愛なる方々に共通すること

わたしの親愛なる彼や友人SD氏、JP氏、最近ハマっている俳優ディーン・フジオカに共通すること。それは…皆コーディングが出来ること、である!そんな彼らが爆速でキーボードを叩く姿をただ指を咥えて眺めているなんて、なんと虚しいことよと 常々、感じてい…

ロサンゼルス国際空港でトランジット宿泊した話

杜の都の医学生です。 Introduction: 春休みの最後を昨年留学したサンフランシスコで過ごしたいと思い、格安航空券を買いました(アメリカ行きは、1年の中で2-3月が一番安い気がします)。 今回は、ロサンゼルス国際空港(LAX)でのトランジット(宿泊)についての…

Making Cocoa/ Kinako/ Macha/ Ryokucha/ Butter cookies and Shortbread.

Background Cookies may be suitable for potluck party. So we decided to make various kinds of cookies, including Japanese flavors like macha and kinako (soy bean flour). We will give them to our friends and find out which cookie is the most…

What's the difference between just the mixture of biomolecules and living cells?

I'm making experiments here in UCSF and sometimes remember Fujiwara-san, who was a mentor of BIOMOD Team Sendai in 2012 and 2013. He was very strict about not only experiments but also the management of the team (though I liked him a lot!)…

Cookie Protocol/ Incubation

On Saturday Sushmita (a roommate from India) and I made cookies :) As we are both scientists, she called the recipe 'protocol' and the procedure of leaving cookie dough in a fridge for an hour 'incubation' :P We tried staind glass cookies …

Moving to Hatena

First I used Medium as a blog to write about the life in SF and the U.S. But now I found that I was too lazy to continue it because it required pictures or photos every time you made a post. So I decided to move here. I'll use Hatena as a …

What's RCF?

Hey today I wonder what are the two abbreviations used in a centrifuge machine. One if RPM, revolution/rotation per minute and the other is RCF, relative centrifugal force. You might have heard the word RPM, and can easily guess what it me…