« 問題描述: 假設要在足夠多的會場里安排一批活動,并希望使用盡可能少的會場。設計一個有效的 貪心算法進行安排。(這個問題實際上是著名的圖著色問題。若將每一個活動作為圖的一個 頂點,不相容活動間用邊相連。使相鄰頂點著有不同顏色的最小著色數,相應于要找的最小 會場數。) « 編程任務: 對于給定的k個待安排的活動,編程計算使用最少會場的時間表。 « 數據輸入: 由文件input.txt給出輸入數據。第一行有1 個正整數k,表示有k個待安排的活動。接 下來的k行中,每行有2個正整數,分別表示k個待安排的活動開始時間和結束時間。時間 以0 點開始的分鐘計。 « 結果輸出: 將編程計算出的最少會場數輸出到文件Output.txt。
標簽: laquo
上傳時間: 2013-12-20
上傳用戶:LIKE
ICP fit points in data to the points in model. Fit with respect to minimize the sum of square errors with the closest model points and data points. Ordinary usage: [R, T] = icp(model,data) INPUT: model - matrix with model points, data - matrix with data points, Output: R - rotation matrix and T - translation vector accordingly so newdata = R*data + T . newdata are transformed data points to fit model see help icp for more information
標簽: points the minimize respect
上傳時間: 2014-01-02
上傳用戶:gyq
% because we do not truncate and shift the convolved input % sequence, the delay of the desired Output sequence wrt % the convolved input sequence need only be the delay % introduced by the ideal weight vector centred at n=5
標簽: the convolved truncate sequence
上傳時間: 2015-12-27
上傳用戶:www240697738
This example streams input from a ADC source to a DAC. An analog signal is acquired block-by-block into SDRAM from the ADC (an AD9244 in this example). The frames are then Output with a one-frame delay to the DAC (an AD9744 in this example). In this example, no processing is done on the frames. They are passed unaltered.
標簽: block-by-block acquired example streams
上傳時間: 2015-12-29
上傳用戶:bjgaofei
最大流,The programs are designed to run under BSD UNIX. All programs read from the standard input and write to the standard Output. Run "make" to compile the programs and generators. File "list" lists the programs produced my "make". Input files are in DIMACS format. See sample.input.
標簽:
上傳時間: 2015-12-30
上傳用戶:zhenyushaw
This program demonstrates operation of ADC0 in polled mode. The ADC0 is // configured to use writes to AD0BUSY as its start of conversion source and // to measure the Output of the on-chip temperature sensor. The temperature // sensor Output is converted to degrees Celsius and is transmitted out UART0
標簽: ADC0 demonstrates configured operation
上傳時間: 2014-01-23
上傳用戶:wangyi39
This program demonstrates operation of ADC0 in polled mode. The ADC0 is // configured to use writes to AD0BUSY as its start of conversion source and // to measure the Output of the on-chip temperature sensor. The temperature // sensor Output is converted to degrees Celsius and is transmitted out UART0
標簽: ADC0 demonstrates configured operation
上傳時間: 2014-08-18
上傳用戶:米卡
This directory contains the memtest 8051 firmware for the Anchor Chips EZ-USB chip. The purpose of this software is to test the different memory segments in the Ez-Usb chip. This example will Output the string "good" on the 7 segment LED if the mem test passes, or it will Output the first address where the memtest fails.
標簽: directory the contains firmware
上傳時間: 2013-12-16
上傳用戶:gdgzhym
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
EPS_Java Projec is JAVA program can display charts, and handle waypoints, track, and routes. It reads Output from the gpstrans program. gpstrans can communicate with Garmin GPS navigators.
標簽: and waypoints EPS_Java display
上傳時間: 2016-01-22
上傳用戶:2404