♥_ mE and oNLy mEh_♥

♥_ mE and oNLy mEh_♥
♥ wAz laNg ♥

Monday, June 22, 2009

_Mycontrast_

Information vs. Data.
• Information is knowledge derived from study, experience (by the senses), or instruction. It is communication intelligence. It is any kind of knowledge that is exchangeable amongst people, about things, facts concepts, etc., in some context." Information is interpreted data.

• Data are facts, statistics used for reference or analysis. Numbers, characters, symbols, images etc., which can be processed by a computer. Data must be interpreted, by human or machine, to derive meaning. It is a representation of information. The Latin word "datum" which means "that which is given. Data is any sort of raw fact.

Data Storage vs. Computer Storage
• Computer storage is the holding of data in an electromagnetic form for access by a computer processor. Primary storage is data in ramdom access memory (RAM) and other "built-in" devices. Secondary storage is data on hard disk, tapes, and other external devices.

• Data Storage device is a storage medium. Most often the term is used with computers. Data storage devices can permanently hold data, like files. Common data strorage devices are: USB flash drives, Hard disk drives, Compact discs, DVDs. A storage device may hold information,process information, or both. A device that only holds information is a recording medium.

Operating system vs. Computer System
• Operating system (commonly abbreviated to either OS or O/S) is an interface between hardware and user; it is responsible for the management and coordination of activities and the sharing of the resources of thr computer. The operating system acts as a host, one of the purposes of an operatting system is to handle the details of the operation of the hardware. This relieves application programs from having to manage these details and makes it easier to write applications. Almost all computers (including handheld computers, desktop computers, super computers, video game consoles) as well as some robots, domestic appliances (dishwashers, washing machines), and portable media players use an operating system of some type. Some of the oldest models may however use an embedded operating system that may be contained on a compact disk or other data storage device.

• Computer system includes not only the computer, but also any software and peripheral devices that are necessary to make the computer function. Evry computer system, for example, requires an operating system.

-= Memory Classifications =-

Two types of memory:
*Primary storage
*Secondary storage

Primary storage:
1. RAM(Random Access Memory)
>>this is power dependent,which means that if there is a power loss, the data that you've just saved will not be found if ever the current gets back. RAM is in a form of 'integrated circuits'.

2. ROM(Read Only Memory)
>>both data and instruction.This RAM is in a form of integrated circuits.

3. Cache memory
Acts as a buffer. It can be found inside the IC's.

4. Virtual memory
-extended memory
-dependent upon hard drive
-temporary
>>it is located inside your hard drive is set on operating system.

Secondary storage
1. Hard disc
>>it runs through a magnetic media
>>it is called 'hard' because it is "metallic"

2. Flash drives

3. CD and DVD's
>>There is also what we called Tertiary memory storage aside from primary and secondary memory storage.

Tertiary Storage
>>these are portables
•flash drive
•external CD-ROM drives
•external drives
•external hard disc- smaller hard disc
•flash memory card
•memory sticks

Sunday, March 1, 2009

♥_dEfinEd_♥

-= tEn difFeRent dEfinitiOns of datA stRuctuRe: =-

1. A means of storing a collection of data. Computer science is in part the study of methods for effectively using a computer to solve problems, or in other words, determining exactly the problem to be solved. This process entails (1) gaining an understanding of the problem; (2) translating vague descriptions, goals, and contradictory requests, and often unstated desires, into a precisely formulated conceptual solution; and (3) implementing the solution with a computer program. This solution typically consists of two parts: algorithms and data structures.

2. Way in which data are stored for efficient search and retrieval. The simplest data structure is the one-dimensional (linear) array, in which stored elements are numbered with consecutive integers and contents are accessed by these numbers. Data items stored non consecutively in memory may be linked by pointers (memory addresses stored with items to indicate where the "next" item or items in the structure are located). Many algorithms have been developed for sorting data efficiently; these apply to structures residing in main memory and also to structures that constitute information systems and databases.

3. A data structure in computer science is a way of storing data in a computer so that it can be used efficiently. It is an organization of mathematical and logical concepts of data. Often a carefully chosen data structure will allow the most efficient algorithm to be used. The choice of the data structure often begins from the choice of an abstract data type. A well-designed data structure allows a variety of critical operations to be performed, using as few resources, both execution time and memory space, as possible. Data structures are implemented by a programming language as data types and the references and operations they provide.

4. It is the interrelationship among data elements that determine how data is recorded, manipulated, stored, and presented by a database.

5. In programming, the term data structure refers to a scheme for organizing related pieces of information. The basic types of data structures include:
files
lists
arrays
records
trees
tables

Each of these basic structures has many variations and allows different operations to be performed on the data.

6. A data structure is a specialized format for organizing and storing data. General data structure types include the array, the file, the record, the table, the tree, and so on. Any data structure is designed to organize data to suit a specific purpose so that it can be accessed and worked with in appropriate ways. In computer programming, a data structure may be selected or designed to store data for the purpose of working on it with various algorithms.

7. Any method of organising a collection of data to allow it to be manipulated effectively. It may include meta data to describe the properties of the structure.
Examples data structures are: array, dictionary, graph,hash, heap, linked list, matrix, object, queue,ring, stack, tree, vector.

8. An organization of information, usually in memory, for better algorithm efficiency, such as queue, stack, linked list, heap, dictionary, and tree, or conceptual unity, such as the name and address of a person. It may include redundant information, such as length of the list or number of nodes in a subtree.

9. A data structure is a way of storing information in a computer so that it can be used efficiently.
Efficiency in this context refers to the ability to find and manipulate data quickly and with the minimum consumption of computer and network resources, mainly CPU (central processing unit) time, memory space and bandwidth.
Numerous types of data structures have been developed; some are very general and widely used, while others are highly specialized for certain types of tasks. Careful selection of data structures can allow the use of the most efficient algorithms for particular tasks and thereby optimize the performance of programs. An algorithm is a precise, unambiguous sets of rules that specify how to solve some problem or perform some task.

10. Data structures can be classified in several ways, including whether they are linear or graphic and whether they are static or dynamic (i.e., whether the shape or size of the structure changes over time). Linear data structures include lists and associative arrays. List data structures can be divided into arrays, linked lists and V lists. Graph data structures include trees, adjacency lists, disjoint-sets, graph-structured stacks and scene graphs. Other data structures include frames, unions, tagged unions and tables.

-= OthEr typEs of daTa stRuctuRe =-

[[..Union (computer science)..]]

In computer science, a union is a data structure that stores one of several types of data at a single location. There are only two safe ways of accessing a union object. One is to always read the field of a union most recently assigned; tagged unions enforce this restriction. The other is to only access functionality common to all types in the union. For example, if the fields are all subtypes of a common supertype, then it is always legal to perform operations on the union object that one can perform on the supertype.
Note: The remainder of this article refers strictly to primitive untagged unions, as opposed to tagged unions.
Because of the limitations of their use, untagged unions are generally only provided in untyped languages or in an unsafe way (as in C). They have the advantage over simple tagged unions of not requiring space to store the tag.
The name "union" stems from the type's formal definition. If one sees a type as the set of all values that type can take on, a union type is simply the mathematical union of its constituting types, since it can take on any value any of its fields can. Also, because a mathematical union discards duplicates, if more than one field of the union can take on a single common value, it is impossible to tell from the value alone which field was last written.

Unions in various programming languages

C/C++

In C and C++, untagged unions are expressed nearly exactly like structures (structs), except that each data member begins at the same location in memory. The data members, as in structures, need not be primitive values, and in fact may be structures or even other unions. However, C++ does not allow for a data member to be any type that has "a non-trivial constructor, a non-trivial copy constructor, a non-trivial destructor, or a non-trivial copy assignment operator." In particular, it is impossible to have the standard C++ string as a member of a union. The union object occupies as much space as the largest member, whereas structures require space equal to at least the sum of the size of its members. This gain in space efficiency, while valuable in certain circumstances, comes at a great cost of safety: the program logic must ensure that it only reads the field most recently written along all possible execution paths.
The primary usefulness of a union is to conserve space, since it provides a way of letting many different types be stored in the same space. Unions also provide crude polymorphism. However, there is no checking of types, so it is up to the programmer to be sure that the proper fields are accessed in different contexts. The relevant field of a union variable is typically determined by the state of other variables, possibly in an enclosing struct.

One common C programming idiom uses unions to perform what C++ calls a reinterpret_cast, by assigning to one field of a union and reading from another, as is done in code which depends on the raw representation of the values. This is not, however, a safe use of unions in general.
Note that the safer tagged unions can be constructed from untagged unions (see tagged union). The safe C dialect Cyclone encourages the preference of tagged unions to untagged.

Structure and union specifiers have the same form. [ . . . ] The size of a union is sufficient to contain the largest of its members. The value of at most one of the members can be stored in a union object at any time. A pointer to a union object, suitably converted, points to each of its members (or if a member is a bit-field, then to the unit in which it resides), and vice versa.

[[..Heap (data structure)..]]

This article is about heap data structures. For “the heap” as a large pool of unused memory, see Dynamic memory allocation.




Example of a full binary max heap




In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if B is a child node of A, then key(A) ≥ key(B). This implies that an element with the greatest key is always in the root node, and so such a heap is sometimes called a max heap. (Alternatively, if the comparison is reversed, the smallest element is always in the root node, which results in a min heap.) This is why heaps are used to implement priority queues. The efficiency of heap operations is crucial in several graph algorithms.

The operations commonly performed with a heap are:

• delete-max or delete-min: removing the root node of a max- or min-heap, respectively
• increase-key or decrease-key: updating a key within a max- or min-heap, respectively
• insert: adding a new key to the heap
• merge: joining two heaps to form a valid new heap containing all the elements of both.
Heaps are used in the sorting algorithm heapsort.

Heap applications
Heaps are a favorite data structures for many applications.
• Heapsort: One of the best sorting methods being in-place and with no quadratic worst-case scenarios.
• Selection algorithms: Finding the min, max or both of them, median or even any k-th element in sublinear time[citation needed] can be done dynamically with heaps.
• Graph algorithms: By using heaps as internal traversal data structures, run time will be reduced by an order of polynomial. Examples of such problems are Prim's minimal spanning tree algorithm and Dijkstra's shortest path problem.
Interestingly, full and almost full binary heaps may be represented using an array alone. The first (or last) element will contain the root. The next two elements of the array contain its children. The next four contain the four children of the two child nodes, etc. Thus the children of the node at position n would be at positions 2n and 2n+1 in a one-based array, or 2n+1 and 2n+2 in a zero-based array. Balancing a heap is done by swapping elements which are out of order. As we can build a heap from an array without requiring extra memory (for the nodes, for example), heapsort can be used to sort an array in-place.
One more advantage of heaps over trees in some applications is that construction of heaps can be done in linear time using Tarjan's algorithm.

Heap implementations
• The C++ Standard Template Library provides the make_heap, push_heap and pop_heap algorithms for binary heaps, which operate on arbitrary random access iterators. It treats the iterators as a reference to an array, and uses the array-to-heap conversion detailed above.

[[..Octree (data structure)..]]

An octree is a tree data structure in which each internal node has up to eight children. Octrees are most often used to partition a three dimensional space by recursively subdividing it into eight octants. Octrees are the three-dimensional analog of quadtrees. The name is formed from oct + tree, and normally written "octree", not "octtree".

Octrees for spatial representation

Each node in an octree subdivides the space it represents into eight octants. In a point region (PR) octree, the node stores an explicit 3-dimensional point, which is the "center" of the subdivision for that node; the point defines one of the corners for each of the eight children. In an MX octree, the subdivision point is implicitly the center of the space the node represents. The root node of a PR octree can represent infinite space; the root node of an MX octree must represent a finite bounded space so that the implicit centers are well-defined. Octrees are never considered kD-trees, as kD-trees split along a dimension and octrees split around a point. kD-trees are also always binary, which is not true of octrees.

Common uses of octrees

• Spatial indexing
• Efficient collision detection in three dimensions
• View frustum culling
• Fast Multipole Method

Application to color quantization

The octree color quantization algorithm, invented by Gervautz and Purgathofer in 1988, encodes image color data as an octree up to nine levels deep. Octrees are used because 23 = 8 and there are three color components in the RGB system. The node index to branch out from at the top level is determined by a formula that uses the most significant bits of the red, green, and blue color components, e.g. 4r + 2g + b. The next lower level uses the next bit significance, and so on. Less significant bits are sometimes ignored to reduce the tree size.

The algorithm is highly memory efficient because the tree's size can be limited. The bottom level of the octree consists of leaf nodes that accrue color data not represented in the tree; these nodes initially contain single bits. If much more than the desired number of palette colors are entered into the octree, its size can be continually reduced by seeking out a bottom-level node and averaging its bit data up into a leaf node, pruning part of the tree. Once sampling is complete, exploring all routes in the tree down to the leaf nodes, taking note of the bits along the way, will yield approximately the required number of colors.

Thursday, February 5, 2009

itS datA sTructurE(aRrayS)

-= ArrayS =-

As we all know that array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier.The data 1,data 2,data 3,data 4,this is placed inside the array billy where it is performed.the illustration of this what we call billy in arrays is like what we see in the Excel,there are rows and columns.Where each blank panel represents an element of the array, that in this case are integer values of type int. These elements are numbered from 0 to 4 since in arrays the first index is always 0, independently of its length. we can access the value of any of its elements individually as if it was a normal variable, thus being able to both read and modify its value. In creating arrays,The New clause must specify the type name, followed by parentheses, followed by braces, {}. The parentheses do not represent a call to an array constructor. Instead, they indicate that the object type is an array type. The braces supply initialization values. The compiler requires the braces even if you are not supplying any values. Therefore, the New clause must include both the parentheses and the braces, even if they are empty.

-= An array of ten elements: =-

Each item in an array is called an element, and each element is accessed by its numerical index. As shown in the above illustration, numbering begins with 0. The 9th element, for example, would therefore be accessed at index 8. each element maps to a unique memory location (that is, no two entries in the array occupy the same memory locations) and (2) the mapping is consistent. That is, a given element in the array always maps to the same memory location. So what you really need is a function with two input parameters (row and column) that produces an offset into a linear array of sixteen memory locations. each element maps to a unique memory location (that is, no two entries in the array occupy the same memory locations) and (2) the mapping is consistent.

Friday, November 21, 2008

116c suRvey # KH19

A data structure is classified into two categories: Linear and Non-Linear data structures. A data structure is said to be linear if the elements form a sequence, for example Array, Linked list, queue etc. Elements in a non-linear data structure do not form a sequence, for example Tree, Hash tree, Binary tree,etc. There are two ways of representing linear data structures in memory. One way is to have the linear relationship between the elements by means of sequential memory locations. Such linear structures are called arrays. The other way is to have the linear relationship between the elements represented by means of links.Such linear data structures are called linked list.

Wednesday, November 12, 2008

116c suRvey # KH13



The earth consists of several layers. The three main layers are the core, the mantle and the crust. The core is the inner part of the earth, the crust is the outer part and between them is the mantle. The earth is surrounded by the atmosphere.The inner part of the earth is the core. The core is a dense ball of the elements iron and nickel. It is divided into two layers, the inner core and the outer core. The layer above the core is the mantle. into the inner mantle and the outer mantle. It is about 1,800 miles(2,900 km) thick and makes up nearly 80 percent of the Earth's total volume. The crust lays above the mantle and is the earth's hard outer shell, the surface on which we are living. In relation with the other layers the crust is much thinner. It floats upon the softer, denser mantle. The earth is surrounded by all kind of gases. This layer is called the earth's atmosphere. Without these atmosphere life on earth isn't possible. The atmosphere gives us air, water, warmth and is protecting us against harmful rays of the sun and against meteorites.



Egg Structure
It is composed of air cell, chalaza, yolk, yolk membrane or the vitelline membrane, shell membrane, shell, chalaza, thin or fluid albumen, thick albumen, and the germinal disc.
Air cell- forms at the wide end of the egg as it cools after being laid. The fresher the egg the smaller the air cell.
Yolk- the egg-s major source of vitamins and minerals, including protein and essential fatty acids.
Yolk membrane- surrounds and holds the yolk. The fresher the egg the stronger the membrane.
Chalaza- A pair of silent bands and anchor the yolk in the center of the thick albumen.
White(albumen)- there are two layers: thin and thick albumen. Mostly made of water, high quality protein and some minerals.
Germinal Disc- appears as a slight depression on the surface of the yolk.
Shell membranes- there are two membranes on the inside of the shell. One membrane sticks to the shell and one surrounds the white.



Thursday, November 6, 2008

itS 116c sUrvEy #1

++ dEscRiptioN of whAt a cOmpUter sySteM is ++
  • it incLudEs nOt onLy thE cOmputEr, bUt aLso aNy sOftwAre aNd pEriphEraL dEvicES
thAt aRe nEcEsSary tO makE thE cOmpUtEr fUncTion.


+harDwaRe cOmpoNentS+
  • mOthErboarD
  • pOwEr sUpPLy
  • stOraGe cOntrolLeRs
  • viDeo diSpLay cOntrOlLeR
  • sOunD caRd
  • iNternaL stOraGe
  • othEr pEriphEraLs