Java Program to Perform Naive String Matching

This is a java program to perform Naive String matching algorithm. Here is the source code of the Java Program to Perform Naive String Matching. The Java program is successfully compiled and run on a Windows system. The program output is also shown below.  package com.sanfoundry.setandstring; import java.util.Scanner; public class StringSearchUsingNaiveMethod{ private final int BASE; private int[] … Read more

advertisement

Java Program to Perform Finite State Automaton based Search

This is a java program to perform search using DFA. Here is the source code of the Java Program to Perform Finite State Automaton based Search. The Java program is successfully compiled and run on a Windows system. The program output is also shown below.  package com.sanfoundry.setandstring; import java.util.Scanner; public class SearchStringUsingDFA{ public static final int NO_OF_CHARS … Read more

advertisement

Java Program to Perform String Matching Using String Library

This is a java program to perform search using string library. Here is the source code of the Java Program to Perform String Matching Using String Library. The Java program is successfully compiled and run on a Windows system. The program output is also shown below.  package com.sanfoundry.setandstring; import java.util.Scanner; public class StringSearchUsingStrLib{ public static void main(String[] … Read more

advertisement

Java Program to Perform String Matching Using Vectors

This is a java program to perform search using Vectors. Here is the source code of the Java Program to Implement String Matching Using Vectors. The Java program is successfully compiled and run on a Windows system. The program output is also shown below.  package com.sanfoundry.setandstring; import java.util.Scanner;import java.util.Vector; public class StringSearchUsingVectors{ public static void main(String[] args) … Read more

advertisement

Java Program to Solve Approximate String Matching using Dynamic Programming

This is a java program to solve approximate string matching using dynamic programming. Here is the source code of the Java Program to Use Dynamic Programming to Solve Approximate String Matching. The Java program is successfully compiled and run on a Windows system. The program output is also shown below.  package com.sanfoundry.setandstring; import java.util.ArrayList;import java.util.Collections;import java.util.HashMap;import … Read more

advertisement

Java Program to Implement Levenshtein Distance Computing Algorithm

This is a java program to implement Levenshtein Distance Computing Algorithm. In computer science, edit distance is a way of quantifying how dissimilar two strings (e.g., words) are to one another by counting the minimum number of operations required to transform one string into the other. Edit distances find applications in natural language processing, where … Read more

advertisement

Java Program to Implement Wagner and Fisher Algorithm for Online String Matching

This is a java program to implement Wagner and Fisher Algorithm. In computer science, the Wagner–Fischer algorithm is a dynamic programming algorithm that computes the edit distance between two strings of characters. Here is the source code of the Java Program to Implement Wagner and Fisher Algorithm for online String Matching. The Java program is … Read more

advertisement

Caesar Cipher Program in Java

Caesar Cipher Program in Java: The Caesar Cipher technique is the simplest and oldest method of encryption in cryptography. In this technique, every character of the message is replaced by its next 3rd character. For example, if the shift position is 3 then every character will be shifted by 3 positions to the right. Plain: … Read more

advertisement

Java Program to Encrypt Message using Playfair Cipher

This is a java program to implement playfair cipher algorithm. The Playfair cipher or Playfair square is a manual symmetric encryption technique and was the first literal digraph substitution cipher. Here is the source code of the Java Program to Enode a Message Using Playfair Cipher. The Java program is successfully compiled and run on … Read more

advertisement

Java Program to Decrypt Message using Playfair Cipher

This is a java program to implement playfair cipher algorithm. The Playfair cipher or Playfair square is a manual symmetric encryption technique and was the first literal digraph substitution cipher. Here is the source code of the Java Program to Decode a Message Encoded Using Playfair Cipher. The Java program is successfully compiled and run … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.