A community for students.
Here's the question you clicked on:
 0 viewing
rvc
 one year ago
Please help
in need :')
C program
A king sends out two scrolls to the common public with the encryted message in it. the hidden message is the no of days the king is going to declare a war in.
u have to interpret the encryption technique from the example4s given below and find the no of days. write a program which inputs the two messages and gives the no of days as output.
For example.
Scroll 1 : AMAZAPPLE
Scroll 2 : APPLIECATION
Hidden message : 5
Scroll 1 : APPLEPIE
Scroll 2 :LEPIECT
Hidden message : 5
It is the no of words common in a stretch
rvc
 one year ago
Please help in need :') C program A king sends out two scrolls to the common public with the encryted message in it. the hidden message is the no of days the king is going to declare a war in. u have to interpret the encryption technique from the example4s given below and find the no of days. write a program which inputs the two messages and gives the no of days as output. For example. Scroll 1 : AMAZAPPLE Scroll 2 : APPLIECATION Hidden message : 5 Scroll 1 : APPLEPIE Scroll 2 :LEPIECT Hidden message : 5 It is the no of words common in a stretch

This Question is Closed

rvc
 one year ago
Best ResponseYou've already chosen the best response.0@wio please help pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

ChantySquirrel1129**
 one year ago
Best ResponseYou've already chosen the best response.0..............yeah I'm retard...I can't help ya here :/ Sorry

mathmate
 one year ago
Best ResponseYou've already chosen the best response.1Is "APPLIECATION" meant to be APPLEICATION

mathmate
 one year ago
Best ResponseYou've already chosen the best response.1No. of words common in a stretch means the longest common string. For example, "EXAMple" and " EXAMination" has a common string of length four. They don't have to start at the beginning. Or, "reSTRIct" and "STRIke" have again a common string of length four. These are easier to look for by inspection because of the short length. You need an algorithm to look for common strings of lengths in the hundreds, for example binary strings. @rvc Does that answer the question?

rvc
 one year ago
Best ResponseYou've already chosen the best response.0No please help me with program

mathmate
 one year ago
Best ResponseYou've already chosen the best response.1Do you have an algorithm? If you have, please post the algorithm before working on the program.

mathmate
 one year ago
Best ResponseYou've already chosen the best response.1Have you done trees?... and dynamic programming?

rvc
 one year ago
Best ResponseYou've already chosen the best response.0yes please tell me the logic to compare the strings

mathmate
 one year ago
Best ResponseYou've already chosen the best response.1First thing first, do you understand the problem?

mathmate
 one year ago
Best ResponseYou've already chosen the best response.1Good, if you have done trees and dynamic programming, you can start by taking a look at the algorithm suggest in the following link: https://en.wikipedia.org/wiki/Longest_common_substring_problem
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.