• Đồ hoạ với SDLĐồ hoạ với SDL

    Khái niệm đệ quy trong toán học / lập trình Một đối tượng (có tham số) được định nghĩa thông qua chính nó với tham số khác (thường nhỏ hơn) Tổng các số tự nhiên từ 1 đến n: s(n) = n + s(n-1) Giai thừa: factorial(n) = n * factorial(n-1) Fibonaci: fibo(n) = fibo(n-1) + fibo(n-2) Hình fractal đệ quy Self-similarity: each part is a “reduced-size ...

    pptx93 trang | Chia sẻ: dntpro1256 | Ngày: 23/11/2020 | Lượt xem: 1331 | Lượt tải: 2

  • Lập trình C - Lecture 6: Applet (Tiếp)Lập trình C - Lecture 6: Applet (Tiếp)

    Giải thích lý do nháy: Mỗi lần gọi repaint() thì update() được gọi update() xoá nội dung cửa sổvà gọi paint() Khắc phục: Vẽ hình vào một khung hình phụ trong bộ nhớ thay vì vẽ trực tiếp ra màn hình. Khi vẽ xong, khung hình phụ được hiển thị ra màn hình trong phương thức paint(). Nạp chồng update() để tránh việc xoá nội dung cửa sổ.

    ppt34 trang | Chia sẻ: dntpro1256 | Ngày: 23/11/2020 | Lượt xem: 1276 | Lượt tải: 1

  • Wireless and Mobile Computing ns-2 Architecture - Lecture 29Wireless and Mobile Computing ns-2 Architecture - Lecture 29

    Maths Support classes [ns-2.29/tools/] class Integrator Simple linear interpolation integrator class Samples Tracks set of sample points (count, sum, sum2, mean, var) class Random, RandomVariable Wrapper around RNG Uniform, exponential, pareto, normal, lognormal generators class RNG Implementation of pseudo-random number generator...

    pptx88 trang | Chia sẻ: thucuc2301 | Ngày: 23/11/2020 | Lượt xem: 1439 | Lượt tải: 1

  • Cellular Wireless Networks - Lecture 28Cellular Wireless Networks - Lecture 28

    OFDM Quadrature Phase Shift Keying (QPSK) symbol represents 2 bits Example of OFDM/QPSK scheme: occupies 6 MHz made up of 512 individual carriers, with a carrier separation of a little under 12kHz data are transmitted in bursts bursts consist of a cyclic prefix followed by data symbols cyclic prefix absorbs burst transients waveform from mul...

    pptxChia sẻ: thucuc2301 | Ngày: 23/11/2020 | Lượt xem: 1009 | Lượt tải: 1

  • Spread Spectrum Review/Recap - Lecture 22Spread Spectrum Review/Recap - Lecture 22

    CDMA Q:- What is CDMA? Ans:- CDMA allows multiple users to transmit over the same wireless channel using spread spectrum. Each user uses a different spreading code. The receiver picks out one signal by matching the spreading code. Summary Relationship between bandwidth of a signal (before and after and encoding SS) Benefits of SS FHSS Slow a...

    pptChia sẻ: thucuc2301 | Ngày: 23/11/2020 | Lượt xem: 1097 | Lượt tải: 1

  • Wireless and Mobile Computing Simulations - Lecture 27Wireless and Mobile Computing Simulations - Lecture 27

    Bug-Fixing Questions What is the expected behaviour of the network? Have I connected the network right? Am I logging trace information at the right level? Can I change it to narrow down on the problem? Has anyone else out there had the same problem? Is there something similar in examples that I can look at, and build upon? Does the code reall...

    pptx66 trang | Chia sẻ: thucuc2301 | Ngày: 23/11/2020 | Lượt xem: 1014 | Lượt tải: 1

  • Spread Spectrum - Lecture 21Spread Spectrum - Lecture 21

    Advantages of Spread Spectrum Reduced crosstalk interference Better voice quality/data integrity and less static noise Lowered susceptibility to multipath fading Inherent security: Co-existence Longer operating distances Hard to detect Hard to intercept or demodulate Harder to jam Summary Spread Spectrum (SS) SS Techniques: FHSS DSSS...

    ppt74 trang | Chia sẻ: thucuc2301 | Ngày: 23/11/2020 | Lượt xem: 1530 | Lượt tải: 1

  • Communication Networks Review Question/Answer - Lecture 11Communication Networks Review Question/Answer - Lecture 11

    Review Question Virtual Channel and Virtual Path Q:-What is the difference between a virtual channel and a virtual path? Ans:-A virtual channel is a logical connection similar to virtual circuit in X.25 or a logical channel in frame relay. In ATM, virtual channels that have the same endpoints can be grouped into virtual paths. All the circuits ...

    pptx101 trang | Chia sẻ: thucuc2301 | Ngày: 23/11/2020 | Lượt xem: 1097 | Lượt tải: 1

  • Signal Encodin Techniques Review/Recap - Lecture 20Signal Encodin Techniques Review/Recap - Lecture 20

    Q:- A microwave transmitter has an output of 0.1 W at 2 GHz. Assume that this transmitter is used in a microwave communication system where the transmitting and receiving antennas are parabolas, each 1 .2 m in diameter. What is the gain of each antenna in decibels? Taking into account antenna gain, what is the effective radiated power of the tran...

    ppt116 trang | Chia sẻ: thucuc2301 | Ngày: 23/11/2020 | Lượt xem: 1368 | Lượt tải: 1

  • Lập trình C - Lecture 6: Lập trình sự kiện (Tiếp)Lập trình C - Lecture 6: Lập trình sự kiện (Tiếp)

    Các phương thức của interface KeyListener Phương thức keyPressed được gọi khi một phím bất kỳ được nhấn. Phương thức keyTyped được gọi thực hiện khi người dùng nhấn một phím không phải “phím hành động” (như phím mũi tên, phím Home, End, Page Up, Page Down, các phím chức năng như: Num Lock, Print Screen, Scroll Lock, Caps Lock, Pause). Phương thứ...

    ppt69 trang | Chia sẻ: dntpro1256 | Ngày: 23/11/2020 | Lượt xem: 1185 | Lượt tải: 1