Posts

Showing posts from October 18, 2013

Quantum Internet Benefits

Image
  The quantum internet is a network of quantum computers that are connected together using quantum communication. It has the potential to revolutionize many industries, including: Secure communications: The quantum internet would be inherently secure, as it would be impossible to eavesdrop on quantum communications without being detected. This could be used for applications such as secure financial transactions, government communications, and military applications. Quantum computing: The quantum internet would allow quantum computers to be connected together, which would allow them to solve problems that are currently impossible for classical computers. This could be used for applications such as drug discovery, financial modeling, artificial intelligence, and materials science. Quantum sensors: The quantum internet could be used to connect quantum sensors together, which would allow them to create a global network of sensors that could be used to monitor the environment, detect earthq

Compress Data using ASCII Values and Decompress data to get back original ASCII

public class StrAscii {          public static void main(String[] args)     {               StrAscii.stringToBytesASCII("Apple");     }          public static byte[] stringToBytesASCII(String str) {  byte[] b = new byte[str.length()];  for (int i = 0; i < b.length; i++) {      System.out.println("Before Ascii "+i+" ="+b[i]);   b[i] = (byte) str.charAt(i);   System.out.println("After Ascii "+i+" ="+b[i]);   StrAscii sa=new StrAscii();      System.out.println("Compressed data Bytes "+i+" ="+sa.compressbyte(b[i]));   System.out.println("Compressed data Slots "+i+" ="+sa.compressslot(b[i]));   System.out.println("Decompressed data "+i+" ="+ (sa.compressbyte(b[i])*9+sa.compressslot(b[i])));  }  return b; }  public long compressslot(long x)  {      x = x%9;      return x;  }  public long compressbyte(long y)  {      y = y/9;      return y;  }