多线程应用

2019-09-01
阅读 7 分钟
1.2k
Running the simulator sequentially takes a long time. By creating a multithreaded version that runs all the airports in parallel, is much more efficient.

编译器Recursive descent parser分析

2019-08-28
阅读 4 分钟
2.8k
Write a recursive descent parser for the language generated by the grammar:

Sudoku讲解

2019-08-27
阅读 3 分钟
1.9k
The objective of Sudoku is to ll a 9x9 grid with the numbers 1-9 so that each column, row, and 3x3 sub-grid (or box) contains one of each digit. You may try out the game here: sudoku.com . Sudoku has 81 variables, i.e. 81 tiles. The variables are named by row and column, and are valued from 1 to ...

素数筛选器

2019-08-21
阅读 17 分钟
1.8k
A prime number is an integer greater than one and is divisible by one and itself only. The sequence of prime numbers starts with 2, 3, 5, 7, 11, 13, 17, 19, ... You may check out the first 1,000 primes at the following site:

使用SonarQube进行测试

2019-08-21
阅读 3 分钟
1.9k
Rockets are fascinating. There are many different systems of rockets that launch satellites and other payloads into space (and back). In this semester-long project, we will develop and test a simple Web application, [链接] that registers and maintains orbital rockets, launches, and launch service...

CSS颜色相关总结

2019-08-19
阅读 5 分钟
1k
Copy your pex3.html file (from your previous practice exercise) into a file named pex4.html. Alternatively, your pex4.html file may be a revised /improved version of pex3.html, and/or also you could also add/eliminate content. You should keep in your file at least one image with figure caption an...

ISBN管理器

2019-08-16
阅读 5 分钟
1.6k
In this assignment, you have to use C++ loops, functions, vectors.Write a program that prompts the user to enter the first 9 digits of an ISBN code and displays the complete 10- digit ISBN code including all 0.

UNO小游戏实现

2019-08-12
阅读 5 分钟
6.9k
This assignment is about using arrays. You will define two classes - one to represent a playing card with a rank and a suit, and one to represent a deck of cards (these are the model classes). Then you will repeatedly shuffle and deal hands, and create a histogram of the results. The view class f...

Ext2文件系统分析

2019-08-11
阅读 14 分钟
2k
Ext2文件系统分析,首先熟悉ext2文件系统,然后实现文件系统中的path resolution process,最后实现基于ext2文件系统的virtual file system.

Bozon Channel Access协议分析

2019-08-09
阅读 7 分钟
1.1k
The purpose of this assignment is to learn about Medium Access Control (MAC) protocols. Along the way, you will also learn how to develop and use a simple discrete-event simulation for the performance analysis of network protocols.

设备驱动的三层交互方式

2019-08-08
阅读 26 分钟
1.5k
The purpose of this assignment is to develop an understanding of the how the three layers of the device driver interact and how the kernel can signal events to an application. In this assignment you will extend the kernel from the second assignment to implement signal handling and a keyboard devi...

日程检索工具的实现

2019-08-06
阅读 11 分钟
1.5k
Understand a problem description, along with the role used by sample input and output for providing such a description.

数据库Buffer Pool实现原理

2019-07-31
阅读 9 分钟
3.4k
In this project milestone, you are going to implement a buffer manager discussed in the class. You should use C++11 to finish this project. If you use more recent C++ standards (e.g., C++17), make sure to update the required standard in CMakeLists.txt. See Tutorial 2 for a quick overview of C++11...

Sleeping Stylist问题浅谈

2019-07-31
阅读 9 分钟
1.7k
The goal of this problem is to solve an inter-thread communication problem called Sleeping Stylist using semaphores. There are 120 customers but only 1 stylist in a hair salon. In the salon, there are 7 chairs that customers can sit and wait for the stylist. Since there is only one stylist, only ...

Dijkstra's算法应用

2019-07-29
阅读 8 分钟
2.4k
Complete the code to find the SHORTEST PATH from a given origin vertex in Graph G(V, E) to every other vertex V in graph G.

Multi-Threading浅谈

2019-07-29
阅读 9 分钟
1.6k
原文地址:Multi-Threading浅谈 INTRODUCTION 使用Multiple Theads的框架编程,熟悉Benchmarking性能测试工具,了解搜索引擎Search Engine的原理。 OBJECTIVES Work with multiple threads Become familiar with benchmarking Become more familiar with the structure of a search engine SUMMARY This week we're work...

Docker实战指南(三):Docker镜像

2016-10-09
阅读 3 分钟
3.7k
在Docker实战指南(二):在Docker中搭建Nginx服务器中,我们已经介绍了如何快速地搭建一个实用的Nginx服务器。这次我们将围绕Docker镜像(Docker Image),介绍其使用方法。包括三部分:

Docker实战指南(二):在Docker中搭建Nginx服务器

2016-09-05
阅读 2 分钟
7k
学习Docker最快的方法就是直接使用,在Docker实战指南(一):Docker介绍中,我们已经介绍了如何快速搭建Docker,以及如何在Docker中运行我们的第一个Hello World! 程序。这次我们将介绍如何快速地搭建一个实用的Nginx服务器。

Docker实战指南(一):Docker介绍

2016-08-28
阅读 3 分钟
3.6k
我第一次注意到Docker大概是在2014年的时候,当时对Docker的第一印象就是,哇靠,这不就是LXC + cgroups吗,新瓶装旧酒又拿来卖了?这都行?直到2015年6月,在各大IT巨头的推动下,Open Container Initiative(OCI)成立,并制定了Open Container的第一版接口的标准规范,Docker正式的成为了Container技术的龙头。本系列文...

PHP设计模式(十):适配器模式

2016-06-27
阅读 3 分钟
8.5k
在PHP设计模式(七):设计模式分类中我们提到过结构设计模式(Structural patterns),结构设计模式专注于设计对象(Object)和实例(Instance)的构建、组合过程。结构设计模式包括下面七种设计模式:

PHP设计模式(九):原型设计模式

2016-06-18
阅读 2 分钟
3k
在PHP设计模式(八):工厂模式中我们介绍了创建设计模式(Creation patterns)中的工厂模式,下面我们将介绍另一种原型设计模式(Prototype Method)。在PHP中,原型设计模式依靠cloning复制对象来实现。通过cloning构造的对象,将大量节省新对象的构造时间。

PHP设计模式(八):工厂模式

2016-06-13
阅读 3 分钟
3.5k
在PHP设计模式(七):设计模式分类中我们提到过创建设计模式(Creation patterns),创建设计模式专注于设计对象(Object)和实例(Instance)的创建过程。创建设计模式包括下面五种设计模式:

PHP设计模式(七):设计模式分类

2016-06-05
阅读 1 分钟
4.3k
根据目的和范围,设计模式可以分为五类。按照目的分为:创建设计模式,结构设计模式,以及行为设计模式。按照范围分为:类的设计模式,以及对象设计模式。下面分别介绍。

PHP设计模式(六):MVC

2016-05-28
阅读 4 分钟
3.6k
20世纪80年代,计算机发展迅速,编程技术也日益分化。桌面应用编程,也逐渐出现了用户图形界面和程序逻辑分离的程序设计。到了90年代,web的出现更是让这种程序设计模式得以延续。这种设计模式便是MVC(Model-View-Control),除了MVC,还有MVC的变种,如MVVM(Model-View-View Model)等。

PHP设计模式(五):多态

2016-05-06
阅读 1 分钟
5.9k
在PHP设计模式(四):继承中我们介绍了继承,利用extends来进行程序设计的方法。在PHP设计模式(二):抽象类和接口中我们介绍了接口,事实上也存在利用interface的程序设计方法,那就是多态。和C/C++,Java,Python等语言一样,PHP也支持多态。多态更多是是一种面向对象程序设计的概念,让同一类对象执行同一个接口,但却...

PHP设计模式(四):继承

2016-04-23
阅读 2 分钟
2.9k
在PHP设计模式(二):抽象类和接口以及PHP设计模式(三):封装中,我们已经见过继承,也就是extends关键字。和C/C++,Java,Python等语言一样,PHP也支持继承,而且和其他语言没有什么区别。

PHP设计模式(三):封装

2016-04-06
阅读 3 分钟
5.9k
面向对象编程中,一切都是对象,对一个对象的封装,也成了面向对象编程中必不可少的部分。和C/C++,Java,Python等语言一样,PHP也支持封装。

PHP设计模式(二):抽象类和接口

2016-03-27
阅读 2 分钟
10.6k
对于编程来说,对事物的抽象是一个老生常谈的话题,抽象问题更利于面向对象编程以及程序设计模式。和C/C++,Java,Python等语言一样,PHP也支持面向对象,但是又有略微区别,如PHP支持在接口中定义常量,但是不支持抽象变量。

PHP设计模式(一):基础编程模式

2016-03-25
阅读 2 分钟
4.4k
俗话说,“PHP是世界上最好的语言”,因为PHP什么都能干。但是在PHP编程中,你是否会遇到这样的困惑:明明是相同的需求,但是之前写的代码却并不能重用,稍微修改不满足需求,大改又会让页面变样。是的,由于PHP什么都能干,但是高度灵活性降低了代码的结构性。虽然可以利用三方框架来解决问题,但问题的根本在于缺乏设计...

Vim实战指南(九):多窗口编辑

2016-03-11
阅读 1 分钟
4.2k
虽然我们在Vim实战指南(四):ex命令介绍了如何同时打开多个文件,但是仍然需要通过n/N来切换,对于编程来说不太方便。Vim支持多窗口编辑,可以让你同时打开并编辑多个文件。