Lecture

Lecture 3 vim

Lecture 3 vim 完成 vimtutor。 备注: 它在一个 80x24(80 列,24 行) 终端窗口看起来最好。 直接执行 vimtutor 下载我们的vimrc,然后把它保存到 ~/.vimrc。 通读这个注释详细的文件 (用 Vim!), 然后观察 Vim 在这个新的设置下看起来和 ......
Lecture vim

Lecture 4 数据整理

Lecture 4 数据整理 练习 学习一下这篇简短的 交互式正则表达式教程. 统计words文件 (/usr/share/dict/words) 中包含至少三个a 且不以's 结尾的单词个数。这些单词中,出现频率前三的末尾两个字母是什么? sed的 y命令,或者 tr 程序也许可以帮你解决大小写的 ......
Lecture 数据

Lecture 5 命令行环境

Lecture 5 命令行环境 课后练习 任务控制 我们可以使用类似 ps aux | grep 这样的命令来获取任务的 pid ,然后您可以基于pid 来结束这些进程。但我们其实有更好的方法来做这件事。在终端中执行 sleep 10000 这个任务。然后用 Ctrl-Z 将其切换到后台并使用 bg ......
命令 Lecture 环境

Lecture 2 Shell Tools and Scripting

Lecture 2 Shell Tools and Scripting homework: 1.Read man ls and write an ls command that lists files in the following manner 读取 man ls 并编写按以下方式列出文件的 l ......
Scripting Lecture Shell Tools and

lecture5

lecture5 Queues are one form of abstract data structure. Queues have specific properties. Namely, they are FIFO or “first in first out.” You can imagi ......
lecture5 lecture

lecture7

lecture7 Flat-File Database 数据常常可以视作表格,每一行是一个记录,每一列是一个属性 电子表格例如Excel,Google Spreadsheet可以导出为csv格式文件。csv文件是纯文本文件,每一行是一个记录,每一列用逗号分隔,可以看作是最简单的数据库 csv文件被称 ......
lecture7 lecture

lecture8

lecture8 Routers 为了将数据从一个地方转到另一个地方,我们需要做转发决定,也就是说需要某人来决定将数据转发到哪里。这个人就是路由器。 TCP/IP 是两个协议,允许计算机间数据在网上传输。 IP 是 Internet Protocol 的缩写,它是一种协议,它定义了如何将数据从一个计 ......
lecture8 lecture

lecture9

lecture9 Welcome! Static to Dynamic Flask Layout POST Frosh IMs Flask and SQL Session Store API JSON Summing Up Welcome! In previous weeks, you have l ......
lecture9 lecture

lecture6

lecture6 Welcome! Python Hello Types Speller Image Recognition CS50 Library Conditionals Variables Loops Calculator Compare Object-Oriented Programmin ......
lecture6 lecture

lecture2

lecture2 Compiling 为什么在云端上有cs50这个头文件,在本机上没有? 在机器的某处存在~/usr/include/cs50.h,但是在本机上没有 代码编译四步骤 preprocessing 将散列包含行的内容转化为其他内容 compiling 将源代码转化为汇编代码 assemb ......
lecture2 lecture

lecture3

lecture3 Running time 符号: O:大O符号,表示上限 \(\Omega\):大Omega符号,表示下限 \(\Theta\):大Theta符号,表示上下限 seach.c #include <cs50.h> #include <stdio.h> int main(void){ ......
lecture3 lecture

lecture4

lecture4 Addressres C语言提供了了两种关于内存的强大操作 & // 提供在内存中所存事物的地址 * // 指示编译器去往内存中某个位置 example: #include<stdio.h> int main(void) { int n = 50; printf("%p\n", & ......
lecture4 lecture

(15-418)Lecture 4 Parallel Programming Basics

并行编程的步骤 可以把并行编程分为下图中的四个步骤: Decmposition 把问题分解为能够并行化的任务,Amdahl定律指出,程序的串行部分制约着并行程序的加速比。 要将一张照片的每个象素的亮度翻倍、计算所有象素的平均值,由于这两部分都是可并行化的,所以加速比可以接近理想情况: Assignm ......
Programming Parallel Lecture Basics 418

(15-418)Lecture 5 Performance Optimization Part 1 Work Distribution and Scheduling

高性能编程的三个目标: 执行单元的负载均衡 减少线程、进程间的交流 减少额外开销 尽量先实现一个最简单的解决方案,之后对其扩展以提高性能。 Balancing the workload 理想情况下,所有处理器在整个程序执行期间都忙于计算。 根据Amdahl定律,程序中的串行部分的比例对最大加速比有很 ......

(15-418)Lecture 3 Parallel Programming Abstractions

抽象VS实现 实例:ISPC程序 ISPC是一种SPMD(single program multiple data)编译器。 利用ISPC编写的计算sin(x)的程序如下图: ISPC提供了一种抽象,当调用ISPC函数时(即程序中调用sinx的语句),会产生一个gang,这个gang含有多个ISPC ......

(15-418)Lecture 2 A Modern Multi-Core Processor

并行执行的方式 本节内容围绕一个程序,针对如何改变处理器的结构来加速程序提出了多个idea 示例程序:该程序通过泰勒展开式来估算sin(x)的值 一个最简单的处理器,每个时钟周期只能执行一条指令,而利用ILP(指令级平行)的超标量处理器可同时执行两条指令(当指令间不存在依赖时),但示例程序存在数据依 ......
Multi-Core Processor Lecture Modern Multi

Lecture3

......
Lecture3 Lecture

Chen Shuo's Practical Network Programming - TTCP Lecture代码注释

下面是C语言版本的TTCP,主要注释的是void receive(const Options& opt);函数,负责在服务器接收客户端发送的数据: // muduo/examples/ace/ttcp/ttcp_blocking.cc #include ... // 接受新的TCP连接 static ......
注释 Programming Practical Network Lecture

【图形学笔记】Lecture12-Path Tracing-路径追踪

Lecture12-Path Tracing-路径追踪 目录Lecture12-Path Tracing-路径追踪Ray Casting 光线追踪Ray-surface intersection 射线-表面判交光线和平面光线和三角形判交——Möller Trumbore算法Ray Intersect ......
路径 图形 Lecture Tracing 笔记

【图形学笔记】Lecture10-Radiometry-辐射度量学

Lecture10-Radiometry-辐射度量学 目录Lecture10-Radiometry-辐射度量学一些概念Solid angles 立体角Differential solid angle 立体角的导数辐射度量学Radiant flux (power)Radiant intensityIr ......
Radiometry 图形 Lecture 笔记 10

【图形学笔记】Lecture07-Introduction to Geometry几何

Lecture07-Introduction to Geometry几何 目录Lecture07-Introduction to Geometry几何Implicit Surface 隐式的曲面CSG-Constructive Solid Geometry(Implicit)构造刚体几何图形Blen ......
Introduction 几何 Geometry 图形 Lecture

【图形学笔记】Lecture06-Texture Mapping 纹理映射

Lecture06-Texture Mapping 纹理映射 目录Lecture06-Texture Mapping 纹理映射Barycentric Coordinates重心坐标Applying Texture 纹理的一些应用Texture Magnification 纹理放大Bilinear I ......
纹理 图形 Lecture Texture Mapping

【图形学笔记】Lecture05-Shading 着色

Lecture05-Shading 着色 目录Lecture05-Shading 着色Diffuse Reflection 漫反射Specular Shading (Blinn-Phong) 镜面反射Ambient Shading 环境光Shading Triangle Meshes 三角形网格着色 ......
图形 Lecture Shading 笔记 05

【图形学笔记】Lecture02&03 光栅化、抗锯齿、Z-buffer

目录Lecture02-Digital Drawing 数码绘画Triangles - Fundamental Area Primitive 三角形——基本区域Rasterization 光栅化Sampling 采样Lecture03- Sampling, Aliasing, Antialiasin ......
锯齿 光栅 Z-buffer 图形 Lecture

【图形学笔记】Lecture09-Mesh Representation &Geometry Processing-网格表示与几何处理

Lecture09-Mesh Representation &Geometry Processing-网格表示与几何处理 目录Lecture09-Mesh Representation &Geometry Processing-网格表示与几何处理Mesh Presentation网格表示Smooth ......

算法设计 - Lecture 5

......
算法 Lecture

Lecture 2: Data Sampling and Probability

详细地址:data100Lecture2 1. 引 1.1 图表的使用 两张图片基于相同数据生成,但是表达的意思、想突出的重点完全不一样 1.2 数据科学生命周期 上图是数据科学生命周期,这节课就将如何收集数据 2. 人口普查和调查 可能会有许多误差,有的人无家可归等等,需要理解数据 3. 取样:定 ......
Probability Sampling Lecture Data and

games101-lecture-notes

Games101 课程笔记 Created: 2023-06-07T20:54+08:00 Published: 2023-08-16T21:05+08:00 Categories: ComputerGraphics [ToC] # Lecture01: Overview of Computer G ......
lecture-notes lecture games notes 101

Paxos lecture (Raft user study)

# Paxos 实现日志复制同步 > 本篇文章以 [John Ousterhout(斯坦福大学教授)](http://web.stanford.edu/~ouster/cgi-bin/home.php) 和 [Diego Ongaro(斯坦福大学获得博士学位,Raft算法发明人)](https:// ......
lecture Paxos study Raft user

Lecture、Seminar、Tutorial、Workshop

Lecture、Seminar、Tutorial、Workshop Lecture、Seminar、Tutorial、Workshop 详细差异如下 Lecture 和海内大年夜学讲课形式差不多,有种去阶梯课堂上大年夜课的感到,也是一大年夜群门生在大年夜课堂里听师长教师在上面从头讲到尾。一样平常时长 ......
Tutorial Workshop Lecture Seminar