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
This program is a simple Traffic Light Controller. Between start time and end time the system controls a traffic light with pedestrian self-service. Outside of this time range the yellow caution lamp is blinking.
標簽: time Controller Between program
上傳時間: 2016-01-23
上傳用戶:iswlkje
CheckMate is a MATLAB-based tool for modeling, simulating and investigating properties of hybrid dynamic systems. Hybrid systems are modeled using the Simulink graphical user interface (GUI). Parameters and specifications are entered using both the Simulink GUI and user-defined m-files. CheckMate commands are entered in the MATLAB command window.
標簽: investigating MATLAB-based simulating properties
上傳時間: 2013-12-13
上傳用戶:源弋弋
CHAPT13\AnsiWinTerm.cpp Class used in Win32 terminal emulation CHAPT13\AnsiWinTerm.h Header file for the AnsiWinTerm class CHAPT13\Chapt13.cpp 32-bit test program of terminal emulation CHAPT13\Chapt13.dsp Visual C++ project file CHAPT13\Chapt13.dsw Visual C++ workspace file CHAPT13\Chapt13.rc The resource file used in the test program CHAPT13\resource.h IDs defined in the resource file CHAPT13\Win32Term.cpp The Win32 general purpose terminal class CHAPT13\Win32Term.h Definition of the class CHAPT13\Debug\Chapt13.exe 32-bit executable of the test program.
標簽: AnsiWinTerm CHAPT emulation terminal
上傳時間: 2016-02-03
上傳用戶:秦莞爾w
Title: File Transfer client and server Description: Send or recieve files of any size or type between you and a peer. Displays bytes sent or recieved, return values of send() and recv(), bitrate in KBytes/sec, and time remaining. SendFile and RecvFile functions can easily be added and used in your own code. I tested it ofcourse, a 73 mb self extracting rar archive from South Korea to Massachusetts at 96KB/s arrived fully operational.
標簽: Description Transfer recieve client
上傳時間: 2016-02-18
上傳用戶:13681659100
This Strategic Information Systems Plan (SISP) documents a Strategic Data Model developed for the Kwangju Bank (KJB) in Kwangju, South Korea. Project Plans have been defined for early delivery of priority databases and application systems to support KJB management information needs.
標簽: Strategic Information documents developed
上傳時間: 2016-03-08
上傳用戶:whenfly
This demonstration shows how a ZigBee coordinator can be set up. This demo allows the Demonstration Board (PICDEM Z or Explorer 16) to act as either a "Switching Load Controller" (e.g. a light) or a "Switching Remote Control" (e.g. a switch) as defined by the Home Controls, Lighting profile. It is designed to interact with a second Demonstration board programmed with the Demo RFD project
標簽: This demonstration Demonstratio coordinator
上傳時間: 2014-01-18
上傳用戶:dianxin61
This manual describes how to run the Matlab® Artificial Immune Systems tutorial presentation developed by Leandro de Castro and Fernando Von Zuben. The program files can be downloaded from the following FTP address: ftp://ftp.dca.fee.unicamp.br/pub/docs/vonzuben/lnunes/demo.zip The tour is self-guided and can be performed in any order. To run the presentation, first uncompress the zipped archive and store it in an appropriate directory. Run the Matlab® , enter the selected directory, and type “tutorial” in the prompt.
標簽: presentation Artificial describes tutorial
上傳時間: 2014-01-24
上傳用戶:qilin
Nagios is a powerful host and service monitoring program designed to run on most *NIX systems. It is written in C and designed to be fast and flexible. It has the ability to contact administrators via email, pager, or other user-defined methods.
標簽: monitoring designed powerful service
上傳時間: 2016-04-11
上傳用戶:lepoke
This example demonstrates how the C8051F06x SMBus interface can communicate // with a 256 byte I2C Serial EEPROM (Microchip 24LC02B). // - Interrupt-driven SMBus implementation // - Only master states defined (no slave or arbitration) // - Timer4 used by SMBus for SCL low timeout detection // - SCL frequency defined by <SMB_FREQUENCY> constant
標簽: demonstrates communicate C8051F06x interface
上傳時間: 2016-04-12
上傳用戶:hanli8870