Make A Plan(一)

在一亩三分地论坛上看到这么两篇关于CS的帖子转来作为出国前的学习计划,也算是挂起来做个激励吧~


入门:. 一亩-三分-地,独家发布

Stanford
CS106A - Java 为载体,是Stanford的公共课,如果是转如CS的同学,此门课可以让你轻松入门,又能适应用英语学习的环境。学的又马上能用上。
CS106B - 讲数据结构和算法,计算机的第二门课,作业和课堂都很精彩。
以上两门课都用了Eric Robert的教材,就是这两门课的共同设计者。国内能买影印版,教材同样非常棒。. more info on 1point3acres.com
以上两门课的基础,你就可以做一般的编程活了。

课程最锻炼人的部分应该在于其Assignment,一门课一般有七个,其中一位老师说过,这些练习是让你十年后都有印象的内容。. visit 1point3acres.com for more.

再接下来同样来自Stanford的CS107,涉及面非常广的一门课,公开课的内容侧重编程范式(paradigm),现在改革后,更侧重组织结构,用的教材是CSAPP,CMU的院长著作,也是他们鼎鼎有名的15-213课用的教材,申他们学校的同学应该有点印象,是他们的邮编。. 留学申请论坛-一亩三分地

以上三门课资源链接如下:. from: 1point3acres.com/bbs
http://see.stanford.edu/see/courses.aspx
CS106A

CS106B

CS107


书本分别为:
http://www.amazon.cn/Java%E8%AF% ... d=1331090292&sr=8-2

http://www.amazon.cn/C-%E8%AF%AD ... d=1331090304&sr=8-3

同样涉及编程范式的课,来自Berkeley的导论课CS61A,用了Lisp语言(从Spring 12起,改用Python了),教材也非常经典,可以再参考MIT的入门课6.001一起学习。
http://inst.eecs.berkeley.edu/~cs61a/archives.html
http://www.verycd.com/topics/161025/
http://ocw.mit.edu/courses/elect ... ograms-spring-2005/. 围观我们@1point 3 acres
教材为Structure and Interpretation of Computer Programs 作者公开了这本书,晚上到处能找到,上taobao找个打印店印一下就可以了。
Berkeley的课程视频均可以从Itunes上下载。


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Harmonic analysis is a mathematical tool used to analyze periodic functions by decomposing them into a sum of sinusoidal functions with different frequencies, amplitudes, and phases. In order to perform harmonic analysis using C programming language, the following steps can be followed: 1. Define the periodic function to be analyzed as a series of discrete values. This can be done by either inputting the values manually or by reading them from a file. 2. Calculate the discrete Fourier transform (DFT) of the input signal using the Fast Fourier Transform (FFT) algorithm. This can be implemented using the FFTW library or by writing your own FFT algorithm. 3. Extract the frequency spectrum of the input signal by calculating the magnitude and phase of each frequency component in the DFT output. 4. Use the frequency spectrum to analyze the harmonic content of the input signal by identifying the dominant frequencies and their corresponding amplitudes and phases. 5. Visualize the harmonic analysis results using plots and graphs to better understand the periodic nature of the input signal. Here is an example code snippet in C that performs harmonic analysis on a given periodic function using FFT: ```c #include <stdio.h> #include <stdlib.h> #include <math.h> #include <fftw3.h> #define N 256 // number of discrete samples #define Fs 1000.0 // sampling frequency #define f1 50.0 // fundamental frequency #define f2 100.0 // second harmonic frequency int main() { double x[N], y[N], freq[N], mag[N], phase[N]; int i; // generate a test signal with two harmonics for (i = 0; i < N; i++) { x[i] = sin(2.0 * M_PI * f1 * i / Fs) + 0.5 * sin(2.0 * M_PI * f2 * i / Fs); } // perform FFT on the input signal fftw_complex *in, *out; fftw_plan p; in = (fftw_complex*) fftw_malloc(sizeof(fftw_complex) * N); out = (fftw_complex*) fftw_malloc(sizeof(fftw_complex) * N); for (i = 0; i < N; i++) { in[i][0] = x[i]; in[i][1] = 0.0; } p = fftw_plan_dft_1d(N, in, out, FFTW_FORWARD, FFTW_ESTIMATE); fftw_execute(p); // extract frequency spectrum from the FFT output for (i = 0; i < N; i++) { freq[i] = i * Fs / N; mag[i] = sqrt(out[i][0] * out[i][0] + out[i][1] * out[i][1]) / N; phase[i] = atan2(out[i][1], out[i][0]); } // print out the harmonic content of the input signal printf("Frequency\tMagnitude\tPhase\n"); for (i = 0; i < N/2; i++) { printf("%f\t%f\t%f\n", freq[i], mag[i], phase[i]); } // clean up resources fftw_destroy_plan(p); fftw_free(in); fftw_free(out); return 0; } ```

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值