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

Algorithms

 
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 
i have script for encrypt dan decrypt...

Public Shared Function Decrypt(ByRef Msg As String, ByRef Key As String) As String
        Dim str As String
        Dim builder As New StringBuilder
        Try 
            Dim num5 As Integer = (Msg.Length - 1)
            Dim i As Integer = 0
            Do While (i <= num5)
                Dim num3 As Integer = Strings.Asc(Conversions.ToChar(Msg.Substring(i, 1)))
                Dim num2 As Integer = Strings.Asc(MFunction.GetKey(Key, i))
                Dim charCode As Integer = (num3 - num2)
                builder.Append(Strings.Chr(charCode))
                i += 1
            Loop
            str = builder.ToString
        Catch exception1 As Exception
            ProjectData.SetProjectError(exception1)
            Dim exception As Exception = exception1
            Throw New Exception(("Public Function Decrypt(ByRef Msg As String, ByRef Key As String) As String Error : " & ChrW(13) & ChrW(10) & exception.Message.ToString & ChrW(13) & ChrW(10)))
        Finally
            builder.Length = 0
        End Try
        Return str
    End Function


Public Shared Function Encrypt(ByRef Msg As String, ByRef Key As String) As String
       Dim str As String
       Dim builder As New StringBuilder
       Try
           Dim num5 As Integer = (Msg.Length - 1)
           Dim i As Integer = 0
           Do While (i <= num5)
               Dim num3 As Integer = Strings.Asc(Conversions.ToChar(Msg.Substring(i, 1)))
               Dim num2 As Integer = Strings.Asc(MFunction.GetKey(Key, i))
               Dim charCode As Integer = (num3 + num2)
               builder.Append(Strings.Chr(charCode))
               i += 1
           Loop
           str = builder.ToString
       Catch exception1 As Exception
           ProjectData.SetProjectError(exception1)
           Dim exception As Exception = exception1
           Throw New Exception(("Public Function Encrypt(ByRef Msg As String, ByRef Key As String) As String Error : " & ChrW(13) & ChrW(10) & exception.Message.ToString & ChrW(13) & ChrW(10)))
       Finally
           builder.Length = 0
       End Try
       Return str
   End Function


what algorithm is used?
Please advise...
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 
JokeRe: algorithm method...??? Pin
Peter_in_278011-Apr-17 3:34
professionalPeter_in_278011-Apr-17 3:34 
QuestionBinary tree Pin
Suman Ghosh22-Mar-17 0:40
Suman Ghosh22-Mar-17 0:40 
GeneralRe: Binary tree Pin
Ralf Meier22-Mar-17 2:22
mveRalf Meier22-Mar-17 2:22 
AnswerRe: Binary tree Pin
Alan Balkany22-May-17 4:09
Alan Balkany22-May-17 4:09 
QuestionWhat is the best/good sorting+pipelining strategy for my situation ? Pin
Member 1307259520-Mar-17 16:40
Member 1307259520-Mar-17 16:40 
Questionco-occurrence matrix Pin
Member 130454587-Mar-17 21:33
Member 130454587-Mar-17 21:33 
AnswerRe: co-occurrence matrix Pin
Richard MacCutchan7-Mar-17 23:09
mveRichard MacCutchan7-Mar-17 23:09 
AnswerRe: co-occurrence matrix Pin
Pete O'Hanlon7-Mar-17 23:19
mvePete O'Hanlon7-Mar-17 23:19 
GeneralRe: co-occurrence matrix Pin
Richard MacCutchan7-Mar-17 23:53
mveRichard MacCutchan7-Mar-17 23:53 
GeneralRe: co-occurrence matrix Pin
Pete O'Hanlon7-Mar-17 23:57
mvePete O'Hanlon7-Mar-17 23:57 
GeneralRe: co-occurrence matrix Pin
Richard MacCutchan8-Mar-17 0:05
mveRichard MacCutchan8-Mar-17 0:05 
GeneralRe: co-occurrence matrix Pin
Member 130454588-Mar-17 19:25
Member 130454588-Mar-17 19:25 
GeneralRe: co-occurrence matrix Pin
Pete O'Hanlon8-Mar-17 20:48
mvePete O'Hanlon8-Mar-17 20:48 
GeneralRe: co-occurrence matrix Pin
Member 1304545814-Mar-17 22:46
Member 1304545814-Mar-17 22:46 

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.