четверг, 6 апреля 2017 г.

Images created by pixels. They make a grid and they have their own colour. In compression the quality of image decreases, because it takes many variation of colours in pixels and they make less milticolour pixels. They try to make it in fewer variation of pixels.  To decrease the quality of pixel or make smaller the size of pixel we use  Discrete Cosine Transform (DCT). The forward DCT is defined as

Then we build  8*8 block. It consists 64 DCT. Each element in the quantization matrix is an integer between 1 and 255.
 By using 
we decrease the number quantiazation in pixels.

четверг, 30 марта 2017 г.

        INP
        STA 0
        INP
        STA 1
        LDA 1
        SUB 0
        STA 2
        LDA 2
        INP
        STA 3
        LDA 2
        ADD 3
        STA 5
        out
        hlt

воскресенье, 11 декабря 2016 г.

1q1->0q1R
0q1->1q2R
0q2->0q2R
1q2->0q3R
0q3->1q4R
1q3->0q5R
Bq5->BSTOPR

100101 -----------010011


0q1->1q2R
0q2->0q2R
1q2->1q3R
0q3->0q4R
0q4->1q5R
1q5->0q5R
Bq5->BSTOPR

0010011 -------------1010100

1q1->0q2R
0q2->1q3R
1q3->0q4R
1q4->1q5R
0q4->1q5R
0q5->1q5R
1q5->0q5R
Bq5->BSTOPR

101101 -------------010110

воскресенье, 4 декабря 2016 г.

1.   SELECT ContactName,City
FROM customers;

2. SELECT DISTINCT City
FROM customers;

3. SELECT * FROM customers
WHERE country='Mexico';


4. SELECT * FROM `customers` 
WHERE country<>'Canada'


5. SELECT `ID`, `ContactName`, `Address`, `City`, `PostalCode`, `Country` FROM `customers` WHERE ID<=10
6.
7. SELECT * FROM customers
ORDER BY city;
8.
9.
10.





























четверг, 1 декабря 2016 г.

import java.util.Scanner;
class Main {
  public static void main(String[] args) {
     Scanner input = new Scanner(System.in);
    int array[] = new int[5];
    System.out.println("Insert array elements:");
    for (int i = 0; i < 5; i++) {
        array[i] = input.nextInt();
    }
    System.out.print ("Inserted array elements:");
    for (int i = 0; i < 5; i++) {
        System.out.print (" " + array[i]);}
        Scanner nput = new Scanner(System.in);
    int Narray[] = new int[10];
    System.out.println();
    System.out.println("Insert array elements:");
    for (int k = 0; k < 10; k++) {
        Narray[k] = nput.nextInt();
    }
    System.out.print ("Inserted array elements:");
    for (int k = 0; k < 10; k++) {
    System.out.print (" " + Narray[k]); }
    int xa;
    xa =0;
for (int l=0; l<10; l++) {
if (array[l]==Narray[l]){xa = xa + 1;}
if (xa = 5){System.out.print("yes");}else{System.out.print("no");}
  }
  }
}

import java.util.Scanner;
class Main {
  public static void main(String[] args) {
     Scanner input = new Scanner(System.in);
    int array[] = new int[5];
    System.out.println("Insert array elements:");
    for (int i = 0; i < 5; i++) {
        array[i] = input.nextInt();
    }
    System.out.print ("Inserted array elements:");
    for (int i = 0; i < 5; i++) {
        System.out.print (" " + array[i]);}
        Scanner nput = new Scanner(System.in);
    int Narray[] = new int[10];
    System.out.println();
    System.out.println("Insert array elements:");
    for (int k = 0; k < 10; k++) {
        Narray[k] = nput.nextInt();
    }
    System.out.print ("Inserted array elements:");
    for (int k = 0; k < 10; k++) {
    System.out.print (" " + Narray[k]); }
    int x=0;
for (int i=0; i<5; i++) {
if (array[i]<>Narray[k]){
x++}};
if {x=5}{System.out.print("yes");}else{System.out.print("no");}
  }
}
import java.util.Scanner;
class Main {
  public static void main(String[] args) {
     Scanner input = new Scanner(System.in);
    int array[] = new int[5];
    System.out.println("Insert array elements:");
    for (int i = 0; i < 5; i++) {
        array[i] = input.nextInt();
    }
    System.out.print ("Inserted array elements:");
    for (int i = 0; i < 5; i++) {
        System.out.print (" " + array[i]);}
        Scanner nput = new Scanner(System.in);
    int Narray[] = new int[10];
    System.out.println();
    System.out.println("Insert array elements:");
    for (int k = 0; k < 10; k++) {
        Narray[k] = nput.nextInt();
    }
    System.out.print ("Inserted array elements:");
    for (int k = 0; k < 10; k++) {
    System.out.print (" " + Narray[k]); }
    int l;
    while(l=5){if (array[i]==Narray[k]){l=l+1;}else{l=l;};}
    if (l=5){System.out.print ("yes");}else{System.out.print ("no");}
  }
}

среда, 23 ноября 2016 г.