O GoConqr está de visual novo! Conte para nós o que você achou.

Notas

Mod 4

Sarvesh Kakodkar MADF graduate Inglês 1 página

Conteúdo das notas (1)

Página 1

String matching

1) Bruteforce algorithm

Algorithm BruteForceMatch(T,P):

Input: Strings T (text) with n characters and P (Pattern) with m characters

Output: Starting index of the first substring of T matching P, or an indication that P is not a substring of T

//Outer loop is indexing throught all possible starting indices

//Inner loop indexing through each character of the pattern

for i j while (j j if j=m then

return i

return "There is no substring of T matching P."

Informações

Descrição
graduate MADF Notas sobre Mod 4, criado por Sarvesh Kakodkar em 26-05-2015.
Visualizações
0
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?