一個游戲
the hardware for the game includes a number of displays, each with a button and
-- a light, that each represent a bin that can store marbles (beans).
--
-- The display indicates the number of marbles in each bin at any given time.
-- The light indecates that the present bin is not empty and that pushing the
-- button is a VALID move in the game.
--
-- The button for each display indicates that a player takes the marbles from
-- the selected bin, and takes them in his hand. The hand is represented by a
-- diplay itself (no button).
--
-- Each player has a home bin, located on opposite sides of the game.
* DEFINITION
* This a set of math functions that deal with time. The functions accept
* 4-digit time values and 4-digit time of day values. Time values are
* interpreted as hours-minutes and are VALID if all digits are numeric and
* 9 or less, except the second-to-last digit must be 5 or less. Time of day
* values are VALID if they conform to normally accepted clock values of
* 1:00 to 12:59 for a 12-hour clock or 00:00 to 23:59 for a 24-hour clock.
Problem Statement
You are given a string input. You are to find the longest substring of input such that the reversal of the substring is also a substring of input. In case of a tie, return the string that occurs earliest in input.
Definition
Class: ReverseSubstring
Method: findReversed
Parameters: string
Returns: string
Method signature: string findReversed(string input)
(be sure your method is public)
Notes
The substring and its reversal may overlap partially or completely.
The entire original string is itself a VALID substring (see example 4).
Constraints
input will contain between 1 and 50 characters, inclusive.
Each character of input will be an uppercase letter ( A - Z ).
Examples
0)
"XBCDEFYWFEDCBZ"
Returns: "BCDEF"
We see that the reverse of BCDEF is FEDCB, which appears later in the string.
1)
A one-dimensional calibration object consists of three or more collinear points with known relative positions.
It is generally believed that a camera can be calibrated only when a 1D calibration object is in planar motion or rotates
around a ¯ xed point. In this paper, it is proved that when a multi-camera is observing a 1D object undergoing general
rigid motions synchronously, the camera set can be linearly calibrated. A linear algorithm for the camera set calibration
is proposed,and then the linear estimation is further re¯ ned using the maximum likelihood criteria. The simulated and
real image experiments show that the proposed algorithm is VALID and robust.
Ink Blotting
One method for escaping from a maze is via ‘ink-blotting’. In this method your starting square
is marked with the number ‘1’. All free, VALID squares north, south, east and west around the
number ‘1‘ are marked with a number ‘2’. In the next step, all free, VALID squares around the two
are marked with a ‘3’ and the process is repeated iteratively until :
The exit is found (a free square other than the starting position is reached on the very edge
of the maze), or,
No more free squares are available, and hence no exit is possible.
法國cromda編寫的新版本MATRICE 2(矩陣和矢量運算單元)。
// ----------------------------------------------------------
// 12-01-02 : MODIFIED Matrice to Matrice2 (Delphi 6)
// All routines now operate on rectangular matrix, except (InvMat and SysLin)
// No more need to use the InitMat procedure (suppressed) :
// - the routines detect automaticaly the dimensions of matrix and vector
// - error code MatDimNul is generated if zero lines or column in matrix and vector (See DimensionMatrice and DimensionVecteur)
// - error code MatMauvDim is generated if the dimensions of matrix/vector don t allow VALID result
// -
// The result matrix is dimensioned automaticaly
vhdl編寫,8b—10b 編解碼器設計
Encoder:
8b/10b Encoder (file: 8b10b_enc.vhd)
Synchronous clocked inputs (latched on each clock rising edge)
8-bit parallel unencoded data input
KI input selects data or control encoding
Asynchronous active high reset initializes all logic
Encoded data output
10-bit parallel encoded output VALID 1 clock later
Decoder:
8b/10b Decoder (file: 8b10b_dec.vhd)
Synchronous clocked inputs (latched on each clock rising edge)
10-bit parallel encoded data input
Asynchronous active high reset initializes all logic
Decoded data, disparity and KO outputs
8-bit parallel unencoded output VALID 1 clock later
Description: This program demonstrates a half-duplex 9600-baud UART using
// Timer_A3 using no XTAL and an external resistor for DCO ROSC. DCO used for
// TACLK UART baud generation. The program will wait in LPM4, echoing back
// a received character using 8N1 protocol. On VALID RX character, the
// character is echoed back.
// Using a 100k resistor on ROSC, with default DCO setting, set DCOCLK ~ 2MHz.
// ACLK = n/a, MCLK = SMCLK ~2MHz DCOCLK
The task of clustering Web sessions is to group Web sessions based on similarity and consists of maximizing the intra-
group similarity while minimizing the inter-group similarity.
The first and foremost question needed to be considered in clustering
W b sessions is how to measure the similarity between Web
sessions.However.there are many shortcomings in traditiona1
measurements.This paper introduces a new method for measuring
similarities between Web pages that takes into account not only the
URL but also the viewing time of the visited web page.Yhen we
give a new method to measure the similarity of Web sessions using
sequence alignment and the similarity of W eb page access in detail
Experiments have proved that our method is VALID and e幣cient.