タグ

計算機科学に関するryoasaiのブックマーク (2)

  • Programming != Computer Science

    I recently read this very interesting article on ways to "level up" as a software developer. Reading this article brought home something that has been nagging me for a while since joining Google: that there is a huge skill and cultural gap between "developers" and "Computer Scientists." Jason's advice to leveling-up in the aforementioned article is very practical: write code in assembly, write a m

  • 符号付数値表現 - Wikipedia

    符号・絶対値表現(ふごうぜったいちひょうげん、(英: sign-magnitude representation)は通常の位取り記数法で行うよう、正および負の数を表す符号(+ および −)として1つのビットを使い(符号ビット(英語版))、残りのビットでその数の絶対値を表す符号付きの数の表現方法である。符号・絶対値表現において、符号ビットの値が 0 なら符号は +、1 なら符号は − が付くものと見なされる。符号ビットは通常最上位ビット(MSB)に割り当てられ、下位のビット列で絶対値を表す(例:8ビット符号・絶対値表現において十進数 −43 は二進数 10101011、+43 は 00101011 で表される)。 8ビットで数値を表す場合、符号は1ビット、絶対値は7ビットで表現される。この場合、絶対値の範囲は 0000000 から 1111111 まで(十進法で +0 から +127 まで)

    ryoasai
    ryoasai 2011/08/30
    なお、「1の補数」表現とは、英語では "ones' complement" であり、「2の補数」が "two's complement" と表記されるのとはアポストロフィーの位置が異なる。
  • 1