The platform that enables you to build rich, interactive communities
in

Browse by Tags

  • Port, Socket, Process, and Thread

    Ports are typically used to map data to a particular process running on a computer. the port number forms part of the packet header, it is readily interpreted not only by the sending and receiving computers, but also by firewalls. Processes implement connections to TCP and UDP ports by means of sockets...
    Posted to snowcounty (Weblog) by rliang on 06-06-2007
  • Binary Search

    Two ways to conduct binary search: 1. Recusive, BinarySearch(A[0..N-1], value, low, high) { if (high < low) return not_found mid = (low + high) / 2 if (A[mid] > value) return BinarySearch(A, value, low, mid-1) else if (A[mid] < value) return BinarySearch(A, value, mid+1, high) else return mid...
    Posted to snowcounty (Weblog) by rliang on 06-04-2007
  • Hash Algorithm

    This method uses each character in the input string to determine a hash value. It produces a good distribution of hash codes even when it is fed similar strings. However, it will break down when long strings that end with the same characters are passed. public int ShiftAndAddHash (string strValue) {...
    Posted to snowcounty (Weblog) by rliang on 04-04-2007
  • The collision rate for Hash

    What is the collision rate for hash? No one can tell the exact rate for this. As far as I remember from the school time, it is one in millions. Microsoft Object.GetHashCode() function has the following description: The default implementation of the GetHashCode method does not guarantee unique return...
    Posted to snowcounty (Weblog) by rliang on 03-12-2007
  • Universal Type Name

    C# Visual Basic JScript Visual C++ ILAsm Universal sbyte SByte sbyte char int8 SByte byte Byte byte unsigned char unsigned int8 Byte short Short short short int16 Int16 ushort UInt16 ushort unsigned short unsigned int16 UInt16 int Integer int int int16 Int32 uint UInt32 uint unsigned int unsigned int16...
    Posted to snowcounty (Weblog) by rliang on 04-19-2006
Page 1 of 1 (5 items)