Click here to Skip to main content
15,881,882 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionC++ algorithm Question Pin
Member 1310646721-Jun-17 18:29
Member 1310646721-Jun-17 18:29 
AnswerRe: C++ algorithm Question Pin
OriginalGriff21-Jun-17 18:37
mveOriginalGriff21-Jun-17 18:37 
QuestionInvoice / Payments history table or statement of account Pin
Bastien Vandamme14-Jun-17 15:50
Bastien Vandamme14-Jun-17 15:50 
AnswerRe: Invoice / Payments history table or statement of account Pin
Gerry Schmitz14-Jun-17 16:17
mveGerry Schmitz14-Jun-17 16:17 
GeneralRe: Invoice / Payments history table or statement of account Pin
Bastien Vandamme14-Jun-17 16:46
Bastien Vandamme14-Jun-17 16:46 
GeneralRe: Invoice / Payments history table or statement of account Pin
Gerry Schmitz14-Jun-17 17:39
mveGerry Schmitz14-Jun-17 17:39 
AnswerRe: Invoice / Payments history table or statement of account Pin
jschell10-Jul-17 4:30
jschell10-Jul-17 4:30 
QuestionChaotic image encryption algorithm by Xingyuan Wang Pin
Member 1325934114-Jun-17 4:53
Member 1325934114-Jun-17 4:53 
Hello.

There's an algorithm I've been asked to implement, from a paper called:
A chaotic image encryption algorithm based on perceptron model
.

It was introduced in this paper.
I've spent quite some trying to implement it, but so far without success.

First of all I'd like to point to example results the authors are presenting - they say that for the Lorenz System their starting point was
X = 0, Y = 0, Z = 10^(-10)
, but in the system if initial points of X and Y are equal to 0 then they will remain so, no matter the step we take. And actually mainly X and Y points from the system are used in the algorithm while Z's role is to increase randomization/variety of whole process.

The second thing which is unclear to me is in 2nd step, it says there to choose 8 bits in Z8 to create m, whereas Z8 is the Z coordinate from a point obtained through Lorenz System, but those are actually floating point values, would that mean I should be using bit representation of double/float type and choose the 8 bits from that?
In my implementation, as the m value will be later used for XOR operations with wj, wi, and those will have values within [0-255], I've been using bit representation of the Z8 (double type in my implementation) and in a 8-times loop I've been doing XOR operation on n-th bit of wi/wj with randomly chosen bit from Z8. Would that be correct?

And the last thing is the threshold value - θ - which is obtained through XOR operation on w'1 and w'2, but those are made from w1 and w2, which are obtained through same keyX value... so in the end w'1 and w'2 have same values, doing XOR on them I will always have 0, so what's even the point of having to add/subtract that threshold value if it's always gonna be 0 anyway?


For a reference I've set up a GitHub repo with my implementation and example results - encoded images and histograms. There you can find that I also tried using normal distribution instead of Lorenz System - then results are actually a bit similar to those presented in the article, but that's only if I use pure random distribution omitting the 2nd step and simply generating random numbers for the X, Y and Z without taking any step/choosing new starting points.

I've spent bunch of time trying to figure out this algorithm but I didn't manage to obtain results as those in the article.
I'd highly appreciate any help, maybe I'm confusing something or making wrong assumptions? D'Oh! | :doh:

I'd like to also add, that I'd already tried to contact two of the paper authors but unfortunately I have not received any response.
QuestionSelecting values from list to make up totals in second list Pin
Wayne Gaylard15-May-17 21:45
professionalWayne Gaylard15-May-17 21:45 
AnswerRe: Selecting values from list to make up totals in second list Pin
Richard MacCutchan15-May-17 22:27
mveRichard MacCutchan15-May-17 22:27 
GeneralRe: Selecting values from list to make up totals in second list Pin
Wayne Gaylard15-May-17 22:34
professionalWayne Gaylard15-May-17 22:34 
AnswerRe: Selecting values from list to make up totals in second list Pin
F-ES Sitecore22-May-17 4:48
professionalF-ES Sitecore22-May-17 4:48 
QuestionALGORITHM EFFICIENCY/BIG O NOTATION Pin
Member 1313303117-Apr-17 1:29
Member 1313303117-Apr-17 1:29 
AnswerRe: ALGORITHM EFFICIENCY/BIG O NOTATION Pin
OriginalGriff17-Apr-17 1:30
mveOriginalGriff17-Apr-17 1:30 
GeneralRe: ALGORITHM EFFICIENCY/BIG O NOTATION Pin
Member 1313303117-Apr-17 1:59
Member 1313303117-Apr-17 1:59 
AnswerRe: ALGORITHM EFFICIENCY/BIG O NOTATION Pin
Ralf Meier17-Apr-17 2:08
mveRalf Meier17-Apr-17 2:08 
AnswerRe: ALGORITHM EFFICIENCY/BIG O NOTATION Pin
Gerry Schmitz17-Apr-17 7:15
mveGerry Schmitz17-Apr-17 7:15 
GeneralRe: ALGORITHM EFFICIENCY/BIG O NOTATION Pin
Member 1313303118-Apr-17 1:27
Member 1313303118-Apr-17 1:27 
QuestionRe: ALGORITHM EFFICIENCY/BIG O NOTATION Pin
Eddy Vluggen18-Apr-17 1:47
professionalEddy Vluggen18-Apr-17 1:47 
AnswerRe: ALGORITHM EFFICIENCY/BIG O NOTATION Pin
Member 1313303118-Apr-17 1:53
Member 1313303118-Apr-17 1:53 
GeneralRe: ALGORITHM EFFICIENCY/BIG O NOTATION Pin
Eddy Vluggen18-Apr-17 3:54
professionalEddy Vluggen18-Apr-17 3:54 
Questionalgorithm method...??? Pin
9119110910-Apr-17 17:17
9119110910-Apr-17 17:17 
AnswerRe: algorithm method...??? Pin
Richard MacCutchan10-Apr-17 21:52
mveRichard MacCutchan10-Apr-17 21:52 
AnswerRe: algorithm method...??? Pin
Bernhard Hiller10-Apr-17 22:49
Bernhard Hiller10-Apr-17 22:49 
AnswerRe: algorithm method...??? Pin
Richard Deeming11-Apr-17 2:13
mveRichard Deeming11-Apr-17 2:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.