0

eppstein apos s knuth morris pratt algorithm and minkowski sum code

Knuth-Morris-Pratt pptx

Knuth-Morris-Pratt pptx

Kỹ thuật lập trình

... dịch s= s+jlast(c,P) • TH2: Last(c,P)=-1 Kí tự c không xuất P Dịch toàn P sau vị trí s+ j T Dễ thấy thao tác dịch l s= s+j- last(c,P) • TH3: Nếu Last(c,P)>j Ta dịch phải vị trí (s+ +) Boyer-Moore Code: ... • i=17: P[0+1]=T[17] -> q=0+1=1 Knuth- Morris- Pratt Đánh giá thuật toán: - Thuật toán Knuth- Morris- Pratt có chi phí thời gian O(m+n) với nhiều 2n-1 lần s lần so s nh ký tự trình tìm kiếm THUẬT ... vị trí (s+ +) Boyer-Moore Code: s= 0; while (s=0)&&(T[j +s] ==P[j])) j ; if (j==-1) { printf(“%d” ,s) ; s+ +; } else { k=last(T[j +s] ,P); s= s+ max( j-k,1); } } ...
  • 10
  • 121
  • 0
nghiên cứu thuật toán knuth-morris-pratt và ứng dụng

nghiên cứu thuật toán knuth-morris-pratt và ứng dụng

Thạc sĩ - Cao học

... vic so s nh Pm v Sk+ m Gi s ti mt thi im ang xột ca s Sk - m+ 1Sk - m + Sk v bt u so s nh Pmvi Sk (1) Gi s Pm Sk cú hai kh nng: Nu v trớ xut hin phi nht ca ký t Sk P l m - g, ta cú th dch mu P sang ... vo S (m l di ca mu P) c i s nh vi mu ti mt thi im no ú Mi ln i s nh mu P vi mt ca s trờn S bng cỏch so s nh tng ký t t phi sang trỏi Khi gp ký t khụng khp, ca s trt sang phi qua mt on trờn S ... Pi+1-gPi+2-g Pm-g dúng thng vi khỳc Skm+i+1Sk-m+i+2 Sk Nh vy, Pi v bt u quỏ trỡnh i s nh mi t Pm so vi Sk+g Sj, mu P s dch sang phi i mt s v trớ Thut toỏn s dng hai bng d1v d2 tớnh toỏn bc ch...
  • 76
  • 1,632
  • 13
Nghiên cứu thuật toán knuth morris pratt và ứng dụng

Nghiên cứu thuật toán knuth morris pratt và ứng dụng

Thạc sĩ - Cao học

... ton trt ca s sang phi qua m v trớ trờn S v bt u quỏ trỡnh tỡm kim mi bi vic so s nh Pm v Sk+ m Gi s ti mt thi im ang xột ca s Sk - m+ 1Sk - m + Sk v bt u so s nh Pmvi Sk (1) Gi s Pm Sk cú hai ... Pi+1-gPi+2-g Pm-g dúng thng vi khỳc Skm+i+1Sk-m+i+2 Sk v bt u quỏ trỡnh i s nh mi t Pm so vi Sk+g Nh vy, Pi Sj, mu P s dch sang phi i mt s v trớ Thut toỏn s dng hai bng d1v d2 tớnh toỏn bc ch ... toỏn Skip Search, KMP Skip Search v Alpha Skip Search da s phõn b cỏc ký t quyt inh v trớ bt u ca mu trờn bn Cỏc thut toỏn so s nh mu theo th t bt k: nhng thut toỏn ny cú th tin hnh so s nh...
  • 68
  • 737
  • 1
NTC's pocket dictionary of words and phrases part 75

NTC's pocket dictionary of words and phrases part 75

Ngữ pháp tiếng Anh

... years running Go to days running yeast ["jist] n a very small fungus that causes bread to rise and is also used to make alcohol (Plural only for types and instances.) yell ["jEl] tv to say something ... the skin of an old person iv to become creased; to get small lines in one s skin or on the surface of something tv to cause someone s skin or the surface of something to have Q; to cause creases, ... one s salt worth one s salary worth someone s while worth someone s time and trouble worthless ["w#T l @s] adj having no value or importance; useless (Adv: worthlessly.) worthy ["w# Di] adj deserving...
  • 10
  • 798
  • 3
VERNON I.S.D ATHLETIC DEPARTMENT POLICIES AND GUIDELINES

VERNON I.S.D ATHLETIC DEPARTMENT POLICIES AND GUIDELINES

Thời trang - Làm đẹp

... coaches work very hard to keep athletics in perspective, and we are asking you to the same The University Interscholastic League is currently in the process of cracking down on schools whose fans ... the school as soon as possible UNIFORMS Dress should be very professional both in uniform and out We will furnish your uniform; so not bring personal ... in grades – 12 shall be subject to a mandatory student drug-testing program Testing shall be performed in accordance with accepted practices and procedures as established by the drug – testing...
  • 6
  • 386
  • 0
John Wiley And Sons Webster''s New World - Essential vocabulary_Prefixes and Suffixes

John Wiley And Sons Webster''s New World - Essential vocabulary_Prefixes and Suffixes

Kỹ năng nói tiếng Anh

... -lith, -lithic stone (batholith, neolithic) -logy study of (biology) Prefixes and Suffixes 377 Prefix/Suffix Meaning/Usage -lysis destruction; dissolving; loosening; dissolution (analysis) macro- ... mother Missa solemnis [L.] High Mass (Roman Catholic) mitzvah [Heb.] blessing; commandment n’est-ce pas? [Fr.] Isn’t it so? nicht wahr? [Ger.] Isn’t it so? nil desperandum [L.] “never desperate”—Horace ... health se habla español [Sp.] Spanish is spoken here shalom [Heb.] peace, well-being (used as general greeting) s il vous plâit [Fr.] please status quo [L.] existing condition Foreign Phrases 387...
  • 15
  • 464
  • 0
GRIMM’S FAIRY TALES THE DOG AND THE SPARROW

GRIMM’S FAIRY TALES THE DOG AND THE SPARROW

Kỹ năng nói tiếng Anh

... is all spilt, and my horses all three dead.’ ‘Alas! husband,’ replied she, and a wicked bird has come into the house, and has brought with her all the birds in the world, I am sure, and they ... in the loft, and are eating it up at such a rate!’ Away ran the husband upstairs, and saw thousands of birds sitting upon the floor eating up his corn, with the sparrow in the midst of them ‘Unlucky ... went down into his kitchen; and was still not sorry for what he had done, but sat himself angrily and sulkily in the chimney corner But the sparrow sat on the outside of the window, and cried ‘Carter!...
  • 5
  • 400
  • 0
Mô hình triển khai IPTV của VNPT tại Hà Nội và  giải pháp nhằm nâng cao chất lƣợng dịch vụ VNPT’s IPTV Implementation in Hanoi and Solutions to Improve Service Quality

Mô hình triển khai IPTV của VNPT tại Hà Nội và giải pháp nhằm nâng cao chất lƣợng dịch vụ VNPT’s IPTV Implementation in Hanoi and Solutions to Improve Service Quality

Thạc sĩ - Cao học

... 88 ms Pass 85 ms Pass Jitter current ms Pass 1ms Pass Jitter max ms Pass ms Pass V-MOS 4.45 Pass 4.5 Pass Video Rate 4.156 Mbps Pass 8.835 Mbps Pass Packet lost 0% Pass 1.05% Fail Kênh VOD SD ... Latency 177 ms Pass thái 178 ms Pass Jitter current ms Pass ms Pass Jitter max ms Pass 33 ms Pass V-MOS 4.45 Pass 4.5 Pass Video Rate 3.719 Mbps Pass 8.636 Mbps Pass Packet lost 0% Pass 0.05% Fail ... Packet lost 0% Pass 0% Pass Kênh Trạng Broadcast Trạng SD thái HD thái 14 ms Pass 88 ms Pass current ms Pass ms Pass Jitter max ms Pass ms Pass 4.2 Pass 4.5 Pass Latency Jitter V-MOS 3.291 8.877...
  • 15
  • 662
  • 2
Tài liệu Global Warming A Mind Mapper''''s Guide to The Science and Solutions pdf

Tài liệu Global Warming A Mind Mapper''''s Guide to The Science and Solutions pdf

Điện - Điện tử

... Thousands of © 2007 Jane Genovese All rights reserved Page 20 people behaving in ways to reduce their greenhouse gas emissions results in thousands, even millions of tonnes of greenhouse gases ... companies (National Coal emissions by 90% This would mean humans would Association, Western Fuel need to stop using fossil fuels and switch to © 2007 Jane Genovese All rights reserved Association and ... under the Clean newspaper advertisements made statements such Air Act) Earlier this year, scientists and economists as ‘Some say the earth is warming Some also said were also offered $10,000...
  • 103
  • 743
  • 4
PID ALGORITHM  AND TUNNING METHODS

PID ALGORITHM AND TUNNING METHODS

Cao đẳng - Đại học

... lag in the process loop D is "Pseudo Deadtime"—the sum of the deadtime and all lags other than the largest lag Disturbances Almost all processes contain disturbances Disturbances can enter anywhere ... second longest lag also increases the controllability Flow loops Flow loops are too fast to use the standard methods of analysis and tuning Analog vs Digital control: • Some flow loops using analog ... changes in the valve and changes in the measurement DIRECT measurement Increase in valve position causes an increase in the REVERSE Increase in valve position causes a decrease in the measurement...
  • 40
  • 491
  • 0
Tài liệu Voices of Fear and Safety¿ Women¿s ambivalence towards breast cancer and breast health: a qualitative study from Jordan pdf

Tài liệu Voices of Fear and Safety¿ Women¿s ambivalence towards breast cancer and breast health: a qualitative study from Jordan pdf

Sức khỏe phụ nữ

... breast cancer in our society hides having that illness, because breast is a sensitive issue for a woman and because that illness is considered to be vicious” (9, 4) “Even she herself feels insecure ... that some husband s had misconceptions about breast cancer being a transmissible illness Men s knowledge about breast cancer and their attitudes towards their partner s breast cancer screening is ... to seek early detection of breast cancer This study also exposed misconceptions among husbands about breast cancer being contagious and misapprehensions among physicians towards mammography screening...
  • 19
  • 513
  • 0
Tài liệu Indian Foods: AAPI’s Guide To Health, Nutrition, and Diabetes pptx

Tài liệu Indian Foods: AAPI’s Guide To Health, Nutrition, and Diabetes pptx

Sức khỏe người cao tuổi

... increases with a waist measurement of over 40 inches in men and over 35 inches in women # The table, Risks of Obesity-Associated Diseases by BMI and Waist Circumference, provides you ... developing obesity-associated diseases !I# What is Your Risk?## Body Mass Index (BMI)# BMI is a reliable indicator of total body fat, which is related to the risk of disease and death The score is valid ... your waist circumference increases your risk for developing obesity associated diseases or conditions.# Other Risk Factors# Besides being overweight or obese, there are additional risk factors to...
  • 96
  • 525
  • 0
Tài liệu The NULL Encryption Algorithm and Its Use With IPsec ppt

Tài liệu The NULL Encryption Algorithm and Its Use With IPsec ppt

An ninh - Bảo mật

... or its successors or assigns This document and the information contained herein is provided on an "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, ... that ESP_NULL is any less secure than AH when using the same authentication algorithm (i.e a packet secured using ESP_NULL with some authentication algorithm is as cryptographically secure as a ... symmetric encryption algorithms and implementations of the base algorithm are available for all commonly used hardware and OS platforms 2.5 Test Vectors The following is a set of test vectors...
  • 7
  • 425
  • 0
Tài liệu ACCELERATING PROGRESS AGAINST CANCER: ASCO’s Blueprint for Transforming Clinical and Translational Cancer Research doc

Tài liệu ACCELERATING PROGRESS AGAINST CANCER: ASCO’s Blueprint for Transforming Clinical and Translational Cancer Research doc

Sức khỏe giới tính

... clinical and transla- medical research, NCI, FDA and insurers) to develop tional research concepts and protocols (e.g., materi- consensus on the specific benefits that constitute als scientists, engineers ... Groups, patient advocates and other benefit and scientific opportunity stakeholders to advance key elements of the recommendations yy and private research sponsors should use these NCI consensus ... translational research Through our ongoing discussions with colleagues at research institutions, professional and patient organizations, federal agencies and industry, it is clear that others share...
  • 32
  • 471
  • 0
Tài liệu Nurse’s Pocket Guide: Diagnoses, Interventions, and Rationales pptx

Tài liệu Nurse’s Pocket Guide: Diagnoses, Interventions, and Rationales pptx

Sức khỏe giới tính

... individual needs, responses, and problems is based To facilitate the steps of assessment and diagnosis in the nursing process, an assessment tool (Assessment Tools for Choosing Nursing Diagnoses, Section ... Lifestyle: Recent changes: Significant losses/changes (date): Stages of grief/manifestations of loss: Feelings of: Helplessness: Hopelessness: Powerlessness: OBJECTIVE (EXHIBITS) Emotional status ... Recent changes: Sense of connectedness/harmony with self: Feelings of: Helplessness: Hopelessness: Powerlessness: OBJECTIVE (EXHIBITS) Emotional status (check those that apply): Calm: Anxious: Angry:...
  • 788
  • 1,027
  • 0
Tài liệu LIVESTOCK''''S ROLE IN CLIMATE CHANGE AND AIR POLLUTION ppt

Tài liệu LIVESTOCK''''S ROLE IN CLIMATE CHANGE AND AIR POLLUTION ppt

Điện - Điện tử

... applica- sive and intensive systems emissions from manure tions (and grazing deposits) to soils were derived are dominated by soil emissions Among soil emis- using the default emission factor for ... trace gases (NOx, CO, and CH4) and between grass cover and ligneous vegetation Fires aerosols (Crutzen and Andreae, 1990; Scholes and stimulate the growth of perennial grasses in savan- Andreae, ... (IPCC revised guidelines) As many countries not possess such detailed information, an approach based on standard emission factors is generally used in emission reporting Methane emissions from enteric...
  • 46
  • 538
  • 0
Tài liệu Graphics and Animation on iOS: A Beginner''''s Guide to Core Graphics and Core Animation pptx

Tài liệu Graphics and Animation on iOS: A Beginner''''s Guide to Core Graphics and Core Animation pptx

Hệ điều hành

... Fonts Drawing Text Constructing, Setting, and Using Colors Drawing Images Drawing Lines Constructing Paths Drawing Rectangles Adding Shadows to Shapes Creating and Drawing Gradients Displacing Shapes ... is assumed that you know basic Objective-C and have done some Cocoa programming I also assume you know some elementary principles of computer graphics, such as coordinates and the RGB color scheme ... so popular among programmers, I started to learn how to program in iOS SDK using an Xcode that was much less advanced than what we use today My first impression after seeing some iOS apps was:...
  • 80
  • 800
  • 1
Tài liệu Cleaner Water in China? The Implications of the Amendments to China’s Law on the Prevention and Control of Water Pollution pptx

Tài liệu Cleaner Water in China? The Implications of the Amendments to China’s Law on the Prevention and Control of Water Pollution pptx

Điện - Điện tử

... items covered by federal WEQ standards or establish local standards for items not covered.84 The development of these standards is similar to the standards in the United States The EPA sets treatment ... governments may create local standards for items not covered by the WEQ standards and must report their standards to the State Council.80 Using the WEQ standards and the country s economic and technological ... Discharge Permit Systems.51 Under these different systems, permits have been issued in increasing numbers In 1996, over forty thousand permits were issued in the cities that implemented a system.52...
  • 22
  • 661
  • 0
Tài liệu NASA’S MANAGEMENT OF MOON ROCKS AND OTHER ASTROMATERIALS LOANED FOR RESEARCH, EDUCATION, AND PUBLIC DISPLAY doc

Tài liệu NASA’S MANAGEMENT OF MOON ROCKS AND OTHER ASTROMATERIALS LOANED FOR RESEARCH, EDUCATION, AND PUBLIC DISPLAY doc

Kế toán - Kiểm toán

... NASA s space programs, the Agency also loans lunar and meteorite displays to schools, libraries, museums, and planetariums However, NASA does not consider requests for loans of these samples ... distributes the sample Unless NASA has given prior approval to perform destructive analysis, NASA expects borrowers to return all lunar, Genesis, and Stardust samples as soon as their research is completed ... displays to the visitor facilities at or associated with the NASA Centers and to the Smithsonian Institution s National Air and Space Museum as well as to institutions in 25 states, the District...
  • 46
  • 466
  • 0

Xem thêm