Implement The Huffman Decoding Algorithm

Aug 22, 2009

implement the huffman decoding algorithm

View 1 Replies


ADVERTISEMENT

Implement An Algorithm Called "Diamond-Square Algorithm"?

Jun 8, 2009

I am trying to implement an Algorithm called "Diamond-Square Algorithm" I am having trouble ending it so that it retiurns the required result. So far I have the folloiwng.

[Code]...

View 3 Replies

C# - Implement Your Own Sorting Algorithm?

Apr 29, 2011

Forgive me if this is a silly question....but I think back to my Comp. Sci. classes and I distinctly remember learning/being quizzed on several sorting algorithms and the corresponding 'Big O' notation.

Outside of the classroom though, I've never actually written code to sort. When I get results from a database, I use 'Order By'. Otherwise, I use a collection class that implements a sort. I have implemented IComparable to allow sorting; but I've never gone beyond that.Was sorting always just an academic pursuit for those of us who don't implement languages/frameworks? Or is it just that modern languages running on modern hardware make it a trivial detail to worry about?

Finally, when I call .Sort on a List(Of String), for example, what sort algorithm is being used under the hood?

View 9 Replies

Implement Bankers Algorithm In .net?

Jan 10, 2010

i want to implement bankers algorithm in vb.net how can i implement it

View 1 Replies

Implement An Algorithm To Drag-and-drop A Picturebox In Form

Aug 30, 2011

implement an algorithm to drag-and-drop a picturebox in my form. For example, what Windows does when i want to drag and drop files (or folders) on my desktop.

View 3 Replies

Encoding, Decoding Function?

Dec 9, 2010

I have a pretty stupid problem I've done a simple string encoding function but I'm having some trouble to decode it again

Encoding Function
Private Sub Encrypt(ByVal EncString As String, ByVal blnStatus As Boolean)
If blnStatus = True Then

[code]......

View 4 Replies

HTML Decoding In Gridview

Nov 29, 2011

I'm having difficulty decoding text in a VB GridView. Currently I have the following code:[code]But the text in "view" mode is still HTML encoded while in "edit" mode they are decoded.How do I get it so it is decoded in both modes?

View 1 Replies

String Decoding Error?

Apr 9, 2009

symbol is put into my code, it is meant to be decoded as a /And when I put a % symbol into my code, it is meant to be decoded as a :I am using regex to do thisHere is my code to decode the coded adress (no pun intended):

Dim info As IO.FileInfo
Try
Dim SelectedLstItem As String

[code].....

View 3 Replies

VS 2010 Encoding And Decoding Xml?

Dec 12, 2010

Is there an easy way to encode and decode xml file so that it can only be read with a program that knows how to decrypt it.Basically i want to encode xml file and have a program that reads it.here is the code that is reading it now. thnx to .paul i learned how to read xml the link to that topic is How to read and sort xml

Quote:

vb
Public Class Form1
Dim ds As New DataSet

[code]....

View 8 Replies

.net - .Net WebRequest.Create Decoding Encoded URI?

Apr 19, 2012

I am writing some rest calls to the LinkedIn API using web request and have hit an encoding issue.The LinkedIn API takes requires an encoded URI as one of the parameters on the lookup i am trying to run.

We are calling the api through .Net's WebRequest.Create; and when we pass in the URI it decodes it and as a result we can't get the data from the call. Im trying to open a URI like this[URL]..Is there a mechanism in the webrequest class to stop it decoding the passed in URI; or a work around for this?

View 1 Replies

Decoding A File With 'ISO-8859-1' Encoding

May 20, 2010

I'm having problems decoding a file with "ISO-8859-1" encoding.For example, I can't decode "%E7" to "Ƨ".

View 1 Replies

Decoding Encrypted Query String?

Jan 4, 2012

I am using the method described in the following LINK and I am using the following code to encrypt:

'Page1.aspx
Protected Sub butEncrypt_Click(sender As Object, e As EventArgs) Handles butEncrypt.Click
Dim QueryString As String = "type=Int&pk=" & _primaryKey
QueryString = Tools.encryptQueryString(QueryString)
Response.Redirect(/SearchResults.aspx?Val=" & QueryString)
End Sub

and then finally de-encrypt:

[Code]...

View 1 Replies

Decoding File To Graphical Representation?

Aug 2, 2011

I have a file from the client which is a text file. I have to decode the file to a graphical representation. Is there any way I can do it?

View 16 Replies

Decoding Function Doesn't Seem To Work.

Feb 6, 2009

I'm using some functions which can be compared to encoding/decoding, but it's a really simple and basic application, not really an encoding function.The problem is, the decoding function doesn't seem to work. For some reason, it doesn't work correctly, and I'm a bit stressed, so even after searching for a while, I can't seem to find it.[code]

View 2 Replies

Decoding To Increase / Modify String Value

Jan 12, 2011

I need to work with Decoding so that I can Increase/Modify a String Value from 32 entries to 75 entries, and to include the corresponding checkboxes also.

View 14 Replies

Error When Decoding A Creationdate On PDF File

Dec 6, 2010

I'm getting the following error when decoding a creation date:A first chance exception of type 'System.ArgumentOutOfRangeException'occurred in mscorlib.dll Hour, Minute, and Second parameters describe an un-representable DateTime.

I'm doing pdfdate.decode(xdoc.info("creationdate"))

Here's the info from the PDF file:
/CreationDate (D:191010319150120)
/Producer (Acrobat Distiller Daemon 3.01 for Solaris 2.3 and later
(SPARC))
/Creator (tif_convert_2_ps())
/Title (/tardir/tiffs/a386689.tiff)
/ModDate (D:20010320070957)

The Modification date seems to be a valid date, but, the creation date looks kinda weird to me. More intriguing is that when I get the properties of this file using ADOBE Reader it shows a valid date for the creation date field.

View 3 Replies

The Decoding Technique Used In Audio Decoders?

Oct 31, 2011

1.Converting a wav file to mp3

2.Create a mp3 player by use of a decoder for playing this mp3 file.

I want some help from the best audio programmer who can explain me the decoding logic used to play the mp3 file(Programatically) I am aware of the bit patterns and the data chunks of mp3.I have the knowledge of the data chunks used in mp3 and wav files .I have also used winmm.dll file earlier to ascend into and descend out of the data chunks of wave files.But don't know how the bits are played in a player.Now I need to convert the wav file into mp3 format by use of some encoder program.I came to know about some lame encoder program but am unable to get how to start understanding it's code.

View 1 Replies

Buffer/Array - Safe Application That Contains 3 Threads - Data Acquisition And Decoding - Data Graphing - FFT And Filtering

Aug 26, 2009

I am trying to write a thread safe application that contains 3 threads : -

1 - Data acquisition and decoding
2- Data graphing
3 - FFT and filtering

Thread 1 is collecting bytes from the serial port and converting them int integers (so taking two bytes) after is has captured 64 Bytes and converted into 32 integers, it then needs to pass the array to the graphing thread.

The graphing thread then plots the data and waits for more data.

Thread 3 also waits until thread one has collected 2023 integers and takes these and performs some FFT calculations (which take time).

My question is how do i share the arrays between the three threads without deadlocking the program? as the serial thread will be flying around reasonable fast (1000 bytes per second) so it will synclock onto the shared buffers for most of the time.

Originally i was going to use two synchronised queues, so when thread 1 has collected 32 bytes it queues the data into the graph queue, and once it has collected 2023 it queues the data into the FFT queue.

Then thread 2 and 3 can simple dequeue the data.

However using queues has the overhead of casting the data in and out, and as i know the data type i was planning on using two arrays :-

Dim GraphArray() as ushort
Dim FFTArray() as ushort

Then Thread 1 adds data to each thread, and thread 2 and 3 simple wait until the correct amount of data is available before removing the data. my question is there an array type that allows me to remove x amount of data from an array?

Because i cannot do this easily with the ararys defined as above (GraphArray, FFTArray), as i was planning on making them 1mByte and allowing thread 1 to fill them Knowing they should never overflow and then let thread 2 and 3 remove x amout of bytes at a time unless there is a better way of doing it

View 13 Replies

VS 2008 "Decoding" Text In RichTextBox Control?

Jul 13, 2010

So, imagine I have a RichTextBox control and a few buttons to allow the user to change the font size, set/unset bold, italic etc, and perhaps change the colour. Not much more than that. Can I then - in code - loop through the contents of the RichTextBox and determine which words are in bold or red or whatever, and where paragraphs start and end?

View 9 Replies

Looking For An Algorithm In C#?

Apr 14, 2010

I'll do my best to explain what the algorithm is supposed to do:There's a class 'Recipe'.ach Recipe can include other Recipes but cannot include itself or any other Recipe that includes it. So, a simple example is we have just two Recipes A & B.A,B,C(1) Recipe C Adds B(2) Recipe B Adds A(3) Recipe attempts to add C, but can't because of the relationship. C- B - A.

View 4 Replies

RSA Algorithm

Sep 8, 2010

I'm Micah. Electrical/Electronic engineering 500 level student. I'm working on my final year project. please i need a code for the implementation of RSA algorithm in VB.NET. your assistance will be appreciated.

View 2 Replies

Algorithm For VB Editor?

Dec 26, 2009

is the algorithm for VB editor released anywhere? because i'm trying to create my own editor that gives various options like Linking and self defined array functions (see below) such that one edit can update several others in various places, but i do still wish to have the auto formatting VB editor provides us with.an example of a self defined array function (count):we can transform this:

Public Class test
Private Shared number_of_methods As Integer = 2
Public Function get_number_of_methods_juz_an_example() As Integer
Return number_of_methods

[code]....

well of course instead of the code it would be just click and select (i wrote out the code in <> just to show what's happening)

View 5 Replies

BLS Algorithm Guide

Mar 15, 2012

i need some tutorial to implement BLS (Boneh-Lynn-Shacham) signature algorithm to create private key and public key to encrypt a message.I need tutorial to implement this in VB.NET.

View 1 Replies

Converting And Algorithm In C# To C?

Oct 21, 2005

I found an algorithm in C# that I need to convert to C. Problem is, I have never used C# so the syntax is really strange to me.

Implementation of Berlekamp-Massey algorithm for calculating linear complexity of binary sequence
s = byte array with binary sequence
returns Length of LFSR with smallest length which generates s

[Code].....

View 7 Replies

Create My Own Algorithm?

Dec 14, 2010

I want create my own algorithm

View 1 Replies

Using Own Encryption Algorithm In VB?

Aug 21, 2009

How would I be able to use my own Encryption Algorithm in my program such as encrypting text. I havn't been able to figure this out.

View 1 Replies

An Algorithm Which Can Calculate 500 factorial?

Aug 25, 2007

can you write an algorithm which can calculate 500 factorial.scientific symbol(mode) is unauthorized.Answer should be in String mode.

View 1 Replies

.net - Intelligent Selection Algorithm?

Apr 29, 2009

I am using VB.NET and I am trying to come up with some algorithm or some pseudo-code, or some VB.NET code that will let me do the following (hopefully I can explain this well):I have 2 collection objects, Cob1 and Cob2. These collection objects store objects that implement an interface called ICob. ICob has 3 properties. A boolean IsSelected property, a property called Length, which returns a TimeSpan, and a Rating property, which is a short integer.

OK, now Cob1 has about 100 objects stored in the collection and Cob2 is an empty collection. What I want to do is select objects from Cob1 and copy them over to Cob2. I want the following rules obeyed when selecting the objects though:

[Code]...

View 2 Replies

Algorithm For Temperature Conversion?

Nov 20, 2009

[code...]

So far, my friend has this, and we're trying to figure out how to get the code to tell convert F to C, and back. All we can use for input is (example:) 10,f and it will change it to 40,C.

View 2 Replies

Convert Algorithm From C# To .NET Fail?

May 30, 2011

I'm trying to convert the following algorithm from C# to VB.NET and the VB.NET I have is not producing the same results as my C# algorithm, can someone tell me where I've gone wrong in my conversion?

public static IEnumerable<T[]> Combinations<T>(this IEnumerable<T> elements, int k)
{
List<T[]> result = new List<T[]>();

[code]....

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved