Notes, abstracts, papers, exams and problems of Computers

Sort by
Subject
Level

Algorithms

Classified in Computers

Written at on English with a size of 1.86 KB.

1.A) f(n) = 10 n^2 log (n^10) + n log (n^5) => o(n^2) || 1.B) f(n) = 2^100 n^4 + n^3 => o (n^4)

2.A) 2 nested for inside for =>  n [n+n] = 2n^2

2.B) no. Of primitive operations (1 comparison & 1 return tot=2), 1 for println, (1 for division & 1 for recursive call) => running time is o(n)

2.C) Assignment 1, comparison 1, division 1 & assignment 1 tot=2, addition 1 & assignment 1 tot= 2 (while n), return 1 => running time o(n)

3.A) c2g(n) above f(n) and c1g(n) under f(n)

for constant c1 and no f(n) is omega (g(n)) for every n>=no || for constant c2 and no f(n) is O(g(n)) for every n>=no then f(n) = theta (g(n))

3.B) cg(n) above f(n)

for constant c and no   f(n)= O(g(n))

3.C) cg(n) under f(n)

for constant c... Continue reading "Algorithms" »

Connection

Classified in Computers

Written at on English with a size of 2.64 KB.

Parte 1

1. What is a resource record?

Resource Records define data types in the Domain Name System (DNS)

2. What is the difference between a recursive and a iterative query in DNS? When is each type of query used?


Recursive DNS queries occur when a DNS client requests Information from a DNS server that is set to query subsequent DNS servers until A definitive answer is returned to the client.

In customer requests and fordwarded

Iterative DNS queries are ones in which a DNS server is Queried and returns an answer without querying other DNS servers

In name servers

3. Some computers are given a different IP address each time They connect to the internet.An internet service provider (ISP) can use a few IP addresses to serve many  customers That way….... Continue reading "Connection" »

itgs

Classified in Computers

Written at on English with a size of 3.64 KB.

types of network: depend on the geographical size

1. LAN local are network: one geographical area, is large, all computers belong to the same organization: allows user to log from any part of the organisation, easy share of data, help manage system, user work together
2. WLAN: wireless lan: connect wirelessly, need special security
3. PAN: personal area network: devices are connected to computer, to transfer data or synchronise devices, by bluetooth or USB
4. WAN and MAN: man (metropolitan area network): large area, series of lans connected. Wan (wide area network): cover larger areas, connect many computers and lans together, uses vpn
5: SAN storage area network: stores data, conatins multiple hard disks. Stored is mantianed in a single location:
... Continue reading "itgs" »

Latitude of the position

Classified in Computers

Written at on English with a size of 5.43 KB.

carA = int(input("Can you please enter the top speed of a ferrari"))

carB = int(input("Can you please enter the top speed of a lamborghini"))

if carA>=carB:

    print ("The fastest car is a ferrari")

elif carB>carA:

    print ("The fastest car is a lamborghini”)



coins = int(input("Could you please enter the number of coins te pirate found(max 1000) then press enter"))

if coins >=1 and coins <=100:

    print ("this is a small trasure")

elif coins >=101 and coins <=500:

    print ("this is a medium treasure")

elif coins >=501 and coins <=1000:

    print ("this is a BIG trasure”)



age = int(input("To know if you are old enogh to ride a bike could you please enter your age"))

if  age > 16:

    print("you can ride a... Continue reading "Latitude of the position" »

Algorithms

Classified in Computers

Written at on English with a size of 2.22 KB.

1.A) f(n) = 10 n^2 log (n^10) + n log (n^5) => o(n^2)    1.B) f(n) = 2^100 n^4 + n^3 => o (n^4)

2.A) 2 nested for inside for =>  n [n+n] = 2n^2

2.B) no. Of primitive operations (1 comparison & 1 return tot=2), 1 for println, (1 for division & 1 for recursive call) => running time is o(n)

2.C) Assignment 1, comparison 1, division 1 & assignment 1 tot=2, addition 1 & assignment 1 tot= 2 (while n), return 1 => running time o(n)

3.A) c2g(n) above f(n) and c1g(n) under f(n)

for constant c1 and no f(n) is omega (g(n)) for every n>=no || for constant c2 and no f(n) is O(g(n)) for every n>=no then f(n) = theta (g(n))

3.B) cg(n) above f(n) >> for constant c and no   f(n)= O(g(n))

3.C) cg(n) under f(n) &... Continue reading "Algorithms" »

Radix

Classified in Computers

Written at on English with a size of 1.37 KB.

What is an array? - An Array is an ordered collection of items. 

What is the following Array -   int[] arr = new int[3]; - One-dimensional array
What is the output of the following Java program? - No output and there is an error when the program is Compiled.

if ((i != j) && (a[i] == a[j])) – -1 when lonely false, works
if (a[i] == a[j]) { - always returns -1 (fails)
if break removed, run slower
2 3  return x + secretMethod(x, n - 1);  -   4
2 3 return x * secretMethod(x, n - 1); -   0
4 return x * secretMethod(x - 2);   -   8
insertion sort, but bubbles all prev for each element
Selection sort – find next smallest and swap into n element. N+1.
Radix sort – buckets. Start with LSB.




5 7         System.Out.Println(node.
... Continue reading "Radix" »

Hardware y software

Classified in Computers

Written at on English with a size of 4.23 KB.

Hardware: physical equipment used to process, store or transmit computer programs or data.

CPU: element that controls and executes the operations that take place inside the computer in order to carry out the automatic treatment of information.
CU (control unit): coordinates all the activities and elements of the computer, and a set of records, which are little storage spaces where the information that the CPU manages is temporarily stored.
ALU (arithmetic and logic unit): performs basic operations over data.
Memory: bits’ storehouse where all programs and all data are saved.
Random access memory: performs reading and writing operations, and allows to access random memory positions.
Read only memory: just allows reading operations and it contains
... Continue reading "Hardware y software" »

Computer science

Classified in Computers

Written at on English with a size of 5.79 KB.

public class TrainList<X>
{
    Node<X> first;
    Node<X> last;
    public void add(X value)
    {
        addLast(value)
    }
    public void addFirst(X value)
    {
        Node<X> x = new Node<X>(value);
        if(first == null)
        {
            last = x;
        }
        else 
        {
            x.Next = first;
        }
        first = x;
    }
    public void addLast(X value)
    {
       Node<X> x = new Node<X>(value);
       if(first == null)
       {
           first = x;
       }
        else
       {
            last.Next = x;
       }
       last = x;
    }
    public int size()
    {
     
... Continue reading "Computer science" »

Constants pi type p decimals 2 value '3.1'

Classified in Computers

Written at on English with a size of 4.81 KB.

Module 3 Quiz

1.Structured Query Language (SQL) is considered a procedural language. False
2.PL/SQL fully supports SQL data types. True
3. The term anonymous blocks refers to blocks of code that are not stored for reuse and do not exist after being executed. True
4.The BEGIN section of a PL/SQL block contains code that creates variables, cursors, and types. True
5. Assignment statements are used to put or change the values of variables. True
6. A disadvantage of using the %TYPE attribute is that there is a slight performance hit in that the database server must look up the data type from the data dictionary. True
7. A collection is a data type that can store multiple values of different data types as one unit. False
8. A scalar variable can hold multiple... Continue reading "Constants pi type p decimals 2 value '3.1'" »

Vocabulario character

Classified in Computers

Written at on English with a size of 2.75 KB.

Camera work= (high/low angles to show dominance/inferiority,point of view/over the shoulder to encorage the audience to identify with the character,camera movement to suggest the character is fast paced,anxious..Etc,two shots to emphasize the relationship between characters,zoom for emphasis,close-ups for emotion/reaction,long/establishing shots to show setting/costume) Establishing shot,master shot(position in a scene),close-up,mid-shot,long shot,wide shot,two-shot(two people),aerial shot,point of view shot,over the shouder shot,high angle,low angle,canted angle,pan,tilt(camera up/down),track,crane,steadicam,hand-held(efecto tembloroso),zoom,reverse-zoom. Editing= (contrasting characters or settings,creating links between characters or settings,
... Continue reading "Vocabulario character" »