Question: Give java code, pls ensure you fully implement and the output makes sense I will upvote. The following knapsack consists of 4 7 integer components.

Give java code, pls ensure you fully implement and the output makes sense I will upvote. The following knapsack consists of 47 integer components.
Each plaintext block of 7 ASCII characters is converted
using the same alphabet of 100 symbols (matrix in attached image)
to an integer X and then X to a binary vector V which is
then encrypted by means of the knapsack. Each line of
the ciphertext is an encrypted block.
Hints: M = the first prime greater than
2036764117802210446778721319780022003
W = the first prime greater than
127552671440279916013977
----------------------------------------------------------
KNAPSACK:
828454601004618054511235265
1275526714402799160140470
3312670429975509698800814637
1656016333309154149610372201
13893742515571039787771841019294860
3473435628637654604062400422795621
889199520958025639642433290598628846
52296595290514765565759270
414163524166588887297610609
434179453531874573717695084344185
1696012896940011282594980904743
54272431324770391323907127002638
1003303814254129854674414807716585400
25127876273735143454767259
1736717814255050966311060253390787
2006607628508769920034590735097226988
1520033966027851269047967363958268599
53000686036865110702156809440
27136216172595881423073227557507
102424795166544772559279741
27787485030504316218342282458519485
26500087913089674791246376626
868358906936196475995110252674323
55574970059222895036520646092842312
207273091090454863522826375
1778399041915158410584784621785159363
848006257140998480877616431301
217089727084818965459547332207210
6784054011260802495698327885865
444599760479267925164097205131342517
1916138160626024839044833662644574960
108544863669962154170053582117652
6122528229133435968674256
212001851278760360849215139431
13250299061887717955455216407
13568108277626947871956487799824
3392026941854065527709205935909
6946871257402861879565080761605289
1976451139214308971918937911086319567
222299880238677317546246503195565906
12755267144027991601404700
637763357201399580070235
111149940119976422130324651177853188
4081685486088957312449504
424002937241492080018934194580
6625851070636780517265685462
106000606757701579724817534598
--------------

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!