This question can be done by using the theory of finite automatic machines. You can also enumerate possible situations and jump to the status after setting various States. For example, if a sentence has ended, this state is set to 0, in the word
Reprinted please indicate the source: Thank you
Http://user.qzone.qq.com/289065406/blog/1309051410
General question:
Enter a dictionary and several words
1. If a word can be found in the dictionary, corret is output.
2. If a word can
// There are many situations to consider. You need to simulate it step by step. Be careful which string is the length of the value! # Include # include # include # include using namespace STD; vector V; void is_replace (string str1, string str2)
# Include using namespace STD; string DIC [10010]; string CHE [60]; int DC, CC, flag; void setfile () // enter {Dc = Cc = 0; do {DC ++; CIN> DIC [DC];} while (DC CHE [CC] ;}while (CC
Question:
Ask if the string you entered can be changed to a dictionary string by adding or subtracting one character or replacing one character.
Train of Thought Analysis:
Directly simulate the process of replacing, adding, and subtracting.
Compare
Spell checkerTime Limit: 2000 MS Memory Limit: 65536 KTotal Submissions: 15145 Accepted: 5504 Description You, as a member of a development team for a new spell checking program, are to write a module that will check the correctness of given words
Form verification can be performed in two ways.The first is to write the relevant verification file, which is placed under the same level Directory of the class to be verifiedThe second is to write the verification logic in the Action, which can
Using the shell to combine awk is a good way to tell if a process is running or if a program file is being executed, as an example of PHP.
Define a crontab, execute every minute, the time interval is one minute, possibly next time executes, the
The name of the regular expression validator: Regex, he checks whether the field of the checksum is matched by a regular expression
Parameters:
FieldName: This parameter specifies the name of the Action property of the checksum, and if the field
In the latest WIN10 system, some users find that when running some programs will pop up "Windows protected your computer" SmartScreen Filter has blocked the start of an unrecognized application hint, and we only click "Details" can still run the
Objective
In our daily applications, we should encounter a number of similar situations:
When writing a document, the tool automatically recommends a similar and correct spelling when the word is misspelled;
Use Sogou Input method, hit the
One, now the serial port can only print strings, do not realize the format of the output function, so the value of the variable can not print out. "Progressive printing" is not going to work, it's too painful to join printf right away. Second, the
Recently, we have been looking at Bayesian algorithms. This algorithm has been applied in many aspects, including spelling check, text classification, spam filtering, and Chinese word segmentation. Based on your needs, you can decide to implement
Description
The puzzle game of Sudoku is played on a boardN2 ×N2 cells. The cells are grouped inN×NSquaresN×NCells each. Each cell is either empty or contains a number between 1 andN2.
The sudoku position is correct when numbers in each row, each
Question: For the words given to form a dictionary, and then for each input word, there are the following situations:
1. This word is in the dictionary
2. You can delete any letter from the word in the dictionary.
3. This word can be inserted into
Check whether spelling is correct. Give you a dictionary, and then give you the words you want to query to determine whether a word is correct. The following rules apply: 1. the dictionary contains the word 2, which deletes a letter, 3 adds a letter
Released yesterday:
Http://code.msdn.microsoft.com/SPDisposeCheck
Or click here to download: http://files.cnblogs.com/laputa-sky/SPDisposeCheck.rar
The usage is simple. After installation, open the command prompt and locate to the directory
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.