1 Replies - 1137 Views - Last Post: 15 November 2011 - 07:33 AM Rate Topic: -----

#1 nextyy  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 13-May 09

LZW alghorithm , creating dictonary c#

Posted 15 November 2011 - 07:30 AM

Hello , I am trying to implement the LZW alghoritm in C# and I have some problems in the implementation of the dictonary.

I thought that I can use a hash table as my dictonary but I still don`t know how create the initial (basic) dictionary. As you know I need to have the first 256 position in my dictionary defined.

Can you help me with some ideas with this problem. I know that I can use a C# Dictionary for this problem or an array but I really don`t know from where to start.

Thank you

Is This A Good Question/Topic? 0
  • +

Replies To: LZW alghorithm , creating dictonary c#

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9269
  • View blog
  • Posts: 34,766
  • Joined: 12-June 08

Re: LZW alghorithm , creating dictonary c#

Posted 15 November 2011 - 07:33 AM

Quote

I know that I can use a C# Dictionary for this problem or an array but I really don`t know from where to start.

You start by declaring a generic dictionary and telling it the type of the key and the type of the value.... the rest is gravy!

http://msdn.microsof...y/xfhwa508.aspx
http://msdn.microsof...v=vs.80%29.aspx
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1