simulates coin tossing. Let the program toss a coin each time the user chooses the “Toss Coin” menu option. Count the number of times each side of the coin appears. Display the results. The program should call a separate method flip that takes no arguments and returns false for tails and true for heads. [ Note: If the program realistically simulates coin tossing, each side of the coin should appear approximately half the time.]
标签: the coin simulates chooses
上传时间: 2014-08-30
上传用户:pompey
This program uses the HF flag of a FIFO to trigger reads, guaranteeing that the FIFO is never blocked for the writer, giving high throughput for the reader (bursts of D/2 = 128) and guaranteeing that the the reader will not be stuck in the top half of the FIFO.
标签: FIFO guaranteeing the program
上传时间: 2016-05-05
上传用户:784533221
看n2实例 #Create a simulator object set ns [new Simulator] #Define different colors for data flows #$ns color 1 Blue #$ns color 2 Red #Open the nam trace file set nf [open out-1.nam w] $ns namtrace-all $nf set f0 [open out0.tr w] set f1 [open out1.tr w] #Define a finish procedure proc finish {} { global ns nf $ns flush-trace #Close the trace file close $nf #Execute nam on the trace file exit 0 } #Create four nodes set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] #Create links between the nodes $ns duplex-link $n0 $n2 1Mb 10ms
标签: simulator Simulator different Create
上传时间: 2016-07-02
上传用户:wfl_yy
The WCDMA Physical Layer Demo consists of an end-to-end (transmitter-to-receiver) simulation of the Frequency Division Duplex (FDD) Downlink physical layer for several Dedicated Channels (DCH) as specified by the 3GPP standard (Release 99).
标签: transmitter-to-receiver end-to-end simulation Physical
上传时间: 2013-11-28
上传用户:gdgzhym
DESCRIPTION =========== This example project shows how to use the IAR Embedded Workbench for ARM to develop code for the Atmel AT91SAM9261 evaluation boards. It shows basic use of parallel I/O, timer and the interrupt controller. It starts by showing different patterns on the LED s separated by half second. COMPATIBILITY ============= The project is compatible with the AT91SAM9261-EK board.
标签: DESCRIPTION Workbench Embedded example
上传时间: 2016-10-16
上传用户:yzy6007
For solving the following problem: "There is No Free Lunch" Time Limit: 1 Second Memory Limit: 32768 KB One day, CYJJ found an interesting piece of commercial from newspaper: the Cyber-restaurant was offering a kind of "Lunch Special" which was said that one could "buy one get two for free". That is, if you buy one of the dishes on their menu, denoted by di with price pi , you may get the two neighboring dishes di-1 and di+1 for free! If you pick up d1, then you may get d2 and the last one dn for free, and if you choose the last one dn, you may get dn-1 and d1 for free. However, after investigation CYJJ realized that there was no free lunch at all. The price pi of the i-th dish was actually calculated by adding up twice the cost ci of the dish and half of the costs of the two "free" dishes. Now given all the prices on the menu, you are asked to help CYJJ find the cost of each of the dishes.
标签: Limit following solving problem
上传时间: 2014-01-12
上传用户:362279997
一篇关于TCP-Vegas的文献:Vegas is an implementation of TCP that achieves between 37 and 71% better throughput on the Internet, with onefifth to one-half the losses, as compared to the implementation of TCP in the Reno distribution of BSD Unix. This paper motivates and describes the three key techniques employed by Vegas, and presents the results of a comprehensive experimental performance study—using both simulations and measurements on the Internet—of the Vegas and Reno implementations of TCP.
标签: implementation TCP-Vegas throughpu achieves
上传时间: 2014-01-08
上传用户:lwwhust
matlab程序,用于计算波的半宽(full width of half maxium)
上传时间: 2014-11-26
上传用户:moerwang
The second edition of WiMax Operator鈥檚 Manual includes most of the material from the first edition, plus new discussions of 鈥?The ultra-high-speed mobile telephone standard, HSDPA 鈥?Ultrawideband (UWB) 鈥?Changes to DSL technologies 鈥?Mobile voice 鈥?Mobile entertainment 鈥?New backup systems The new edition also reflects the changes that have occurred in the industry over the last year and half, including the emergence of restandards wireless broadband equipment with fully developed mobile capabilities, ignificant alterations in the competitive landscape, and he opening of valuable new spectrum for roadband wireless operators.
标签: edition the Operator includes
上传时间: 2014-01-02
上传用户:xiaodu1124
The double-density DWT is an improvement upon the critically sampled DWT with important additional properties: (1) It employs one scaling function and two distinct wavelets, which are designed to be offset from one another by one half, (2) The double-density DWT is overcomplete by a factor of two, and (3) It is nearly shift-invariant. In two dimensions, this transform outperforms the standard DWT in terms of denoising however, there is room for improvement because not all of the wavelets are directional. That is, although the double-density DWT utilizes more wavelets, some lack a dominant spatial orientation, which prevents them from being able to isolate those directions.
标签: double-density improvement additional critically
上传时间: 2017-04-03
上传用户:dongbaobao