Solution :
String 1 : ABRACADABRA
String 2 : BRICABRAC
5.1 2- character shingle for each string 1 and 2
String 1: {AB,BR,RA,AC,CA,AD,DA} COUNT = 7
String 2 : {BR,RI,IC,CA,AB,RA,AC} COUNT = 7
5.2 universal 2-shingle word set created by these strings
Universal 2-shingle set : {AB,BR,RA,AC,CA,AD,DA,RI,IC} COUNT = 9
[Question 5, 16 points total, including 5.1-5.4] Assume we received two search strings when running a...
USE JAVA PLEASE And answer all questions Question 5.1 1. Write a program that reads in a number n and then reads n strings. it then reads a string s from the user and gives you the word that was typed in after s. Example input: 4 Joe Steve John Mike Steve Example output: John Example input: 7 Up Down Left Right North South East Right Example output: North 2. Remember to call your class Program Question 5.2 1. Write...
[Question 3, 12 points total, including 3.1-3.2] (minhasbing) Consider the following matrix, d1 0 d4 0 1 1 4 6 1 3 5 2 0 0 1 0 d2 1 0 1 0 0 1 d3 1 1 0 1 1 0 0 0 0 where each column represents a document (altogether we have 4 documents, di, d2, d3 and d4), and the number of rows is the size of the universal word set. Note the first column, ie, column...