We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
标签: represented integers group items
上传时间: 2016-01-17
上传用户:jeffery
对应论文写的时空码的仿真程序。为2天线,BPSK调制模式。自己写的Space time code simulation提供给大家
上传时间: 2014-01-27
上传用户:Shaikh
μC/OS-II Goals Probably the most important goal of μC/OS-II was to make it backward compatible with μC/OS (at least from an application’s standpoint). A μC/OS port might need to be modified to work with μC/OS-II but at least, the application code should require only minor changes (if any). Also, because μC/OS-II is based on the same core as μC/OS, it is just as reliable. I added conditional compilation to allow you to further reduce the amount of RAM (i.e. data space) needed by μC/OS-II. This is especially useful when you have resource limited products. I also added the feature described in the previous section and cleaned up the code. Where the book is concerned, I wanted to clarify some of the concepts described in the first edition and provide additional explanations about how μC/OS-II works. I had numerous requests about doing a chapter on how to port μC/OS and thus, such a chapter has been included in this book for μC/OS-II.
标签: OS-II compatible important Probably
上传时间: 2013-12-02
上传用户:jkhjkh1982
State_space_reconstruction_parameters_in_the_analysis_of_chaotic_time_series_-_the_role_of_the_time_window_length. It is used for reconstruction of state space in chaotic time series, and also how to determine time window.
标签: State_space_reconstruction_parame ters_in_the_analysis_of_chaotic_t the_role_of_
上传时间: 2013-12-21
上传用户:fandeshun
Nonlinear_dynamics_delay_times_and_embedding_windows. How to determine embedded window for chaotic state space of time series
标签: Nonlinear_dynamics_delay_times_an d_embedding_windows determine embedded
上传时间: 2016-02-21
上传用户:tianyi223
The first task at hand is to set up the endpoints appropriately for this example. The following code switches the CPU clock speed to 48 MHz (since at power-on default it is 12 MHz), and sets up EP2 as a Bulk OUT endpoint, 4x buffered of size 512, and EP6 as a Bulk IN endpoint, also 4x buffered of size 512. This set-up utilizes the maximum allotted 4-KB FIFO space. It also sets up the FIFOs for manual mode, word-wide operation, and goes through a FIFO reset and arming sequence to ensure that they are ready for data operations
标签: appropriately The endpoints following
上传时间: 2013-12-02
上传用户:dianxin61
我用matlab写的一个corner detector, 效果比现在流行的harris,susan,CSS等效果要好。 Algorithm is derived from: X.C. He and N.H.C. Yung, Curvature Scale Space Corner Detector with Adaptive Threshold and Dynamic Region of Support , Proceedings of the 17th International Conference on Pattern Recognition, 2:791-794, August 2004. Improved algorithm has been included in A Corner Detector based on Global and Local Curvature Properties and submitted to Optical Engineering.
标签: detector matlab corner harris
上传时间: 2013-12-30
上传用户:569342831
This program simulates the bit-error-rate (BER) performance of OSTBC with L=4 antennas over the frequency flat Rayleigh block fading channel The code is developed for real orthogonal design, code rate 1/2 modulation- 16 QAM with gray coding resulting in 2 bits/sec/Hz.
标签: bit-error-rate performance simulates the
上传时间: 2014-01-13
上传用户:whenfly
This project aim was to build wireless software modem for data communication between two computers using an acoustic interface in the voice frequency range (20Hz– 20,000Hz). The transmitting antenna is a speaker (frequency response of: 90Hz – 20,000Hz) and the receiving antenna is a microphone (frequency response of: 100Hz – 16,000Hz). The test files used as information files were text files. This goal was attained both in an incoherent scheme and in a coherent scheme. Build under Matlab code, our modem uses OFDM (orthogonal frequency division multiplexing) modulation, synchronization by LMS sequence, channel estimation (no equalizer) via pilot tones. The symbols are either PSK or ASK for a constellation size of 2 or 4. To optimize the probability of error, these symbols were mapped using Gray mapping. Report
标签: communication computers software wireless
上传时间: 2014-05-29
上传用户:wangdean1101
功能说明: 一个方便的文字程序,可以快速删除整段文字之中多余的空白(space)。 操作说明: 1.复制贴上文字之后,再点按[吃空白]钮,会删除文字中所有的空白(space)。 2.删除之后并会更新,并告知您所删除的空白(space)字数。
标签: 程序
上传时间: 2013-12-22
上传用户:tonyshao