Preview

Data Representation

Satisfactory Essays
Open Document
Open Document
288 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Data Representation
ITE 221 – Project#1 – Data Representation http://msdn.microsoft.com/en-us/library/d11h6832%28v=VS.71%29.aspx Class library of the .NET Framework for Microsoft. 1. What is a data structure?

A data structure is a related group of primitive data elements organized for some type of common processing and is defined and manipulated in software.

2. What is a library?

A library contains resources for developing software. These resources could be pre-written code, subroutines, classes, values, and type specifications.

3. What data structures are supported by the library?

Some of the data structures here are ArrayList, HashTable, IEnumerable, Dictionary, HashSet, List, Queue, Stack

4. Provide a definition for each data structure?

ArrayList – creates an empty list

HashTable - Represents a collection of key/value pairs that are organized based on the hash code of the key

IEnumerable - Exposes the enumerator, which supports a simple iteration over a collection of a specified type.

Dictionary - Represents a collection of keys and values

HashSet - Initializes a new instance of the HashSet class that is empty and uses the default equality comparer for the set type

List - Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists.

Queue - Represents a first-in, first-out collection of objects

Stack - Represents a variable size last-in-first-out (LIFO) collection of instances of the same arbitrary type

5. What data types are recommended for use with each data structure?

Boolean
System.Boolean

Char
System.Char

String
System.String

Object
System.Object

Integer data types: 'System.Byte' 'System.Int16' 'System.Int32' 'System.Int64' 'System.SByte' 'System.UInt16' 'System.UInt32' 'System.UInt64'

Floating-point types 'System.Single' 'System.Double'

You May Also Find These Documents Helpful

  • Good Essays

    Nt1420 Unit 6

    • 1145 Words
    • 5 Pages

    Question 6 A hash table is a data structure that uses an array as its internal storage container. Items are added to the array based on the integer generated by a hash function. A hash function produces an integer based on some properties of the object. In Java hash functions are encapsulated via the hashcode method in the Object class and that many classes override.…

    • 1145 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Exercise 1: Review of array-based lists Create a project using the classes in the DocSharing area labeled “User-defined array list." Compile it, run it, and review the code that is given carefully. This code tests the ArrayList class provided in the lecture.…

    • 714 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Arrays store items that have the same type of data type like a group of employees’ names and social security numbers for a team of 2000 personal. Pointer is a variable that greatly extends the power and flexibility of a program, each memory location that is used to store data value has an address. The address provides the means for a PC hardware to reference a particular data item.…

    • 485 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    Nt1330 Unit 1 Research Paper

    • 4285 Words
    • 18 Pages

    Each character requires one byte as it is usually stored as an ASCII character. Notice that a digit such as 8 could be held as either a character, an integer or even a real. If any calculations are going to take place on the value then it should be held as either an integer or a real. If the calculation will never result in it being extremely large or gaining decimal places then an integer should be used.…

    • 4285 Words
    • 18 Pages
    Powerful Essays
  • Good Essays

    Comp 220

    • 1463 Words
    • 6 Pages

    Pointers also have the requirement that the pointer type must be of the same data type as the variable, or the data that it points to or holds the address of. The power of pointers also hints at the potential complexity of their use, which is why this lab is focused almost entirely on several different aspects and uses of pointers. The lab also introduces pointer arrays and pointers to pointers.…

    • 1463 Words
    • 6 Pages
    Good Essays
  • Powerful Essays

    ch02 c

    • 2468 Words
    • 11 Pages

    9. The term “data structures” refers to the speed at which data it is captured, analyzed, and reported.…

    • 2468 Words
    • 11 Pages
    Powerful Essays
  • Powerful Essays

    It 210

    • 2960 Words
    • 12 Pages

    Chances are that you frequently use lists in your daily life. The following is a common example:…

    • 2960 Words
    • 12 Pages
    Powerful Essays
  • Good Essays

    Deletion Basic Array Dynamic Array Singly-Linked List Doubly-Linked List Skip List O(1) O(1) O(n) O(n) O(n) O(n) - - O(n) O(1) O(n) O(n) O(log(n)) Hash Table Binary Search Tree Cartresian Tree B-Tree Red-Black Tree Splay Tree AVL Tree…

    • 990 Words
    • 18 Pages
    Good Essays
  • Good Essays

    Bis Midterm Sheet

    • 1467 Words
    • 6 Pages

    Database: A data base is a self-describing collection of integrated records. Bytes (character of data) are grouped into columns. Columns are also called fields. Columns or fields, in turn, are grouped into rows, which are also called records. The collection of data for all columns is called a row or a record. A group of similar rows or records is called a table or a file. A database is a collection of tables plus relationships around the rows in those tables, plus special data, called metadata, that describes the structure of the database. Databases are usually stored on magnetic disks.…

    • 1467 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Data is a group of information that are used for various purposes like analysis, evaluations and to arrive at certain results or conclusions. Data reporting is a process where data is extracted form a source or many sources and then converted into a format that can be used for a purpose. Data can be organised chronologically, for value/size, simple to complex etc.…

    • 267 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    MS Access - Part 1

    • 468 Words
    • 2 Pages

    1. Raw data that has been organized so as to become useful is also known as…

    • 468 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Relational Databases

    • 750 Words
    • 3 Pages

    Data for our programs are stored in various formats. The most commonly used format is in the form of a database since databases are not dependent on a single program or hardware platform. These databases are stored in five structures of hierarchical, network, relational, multidimensional, and object-oriented. Hierarchical structure organizes data in a one to many relationship. The network goes of the hierarchical structure by organizing data in a many to many relationship. The relational structure organizes the data in tables and allows the end user to determine the relationship at run time. Multidimensional takes the relational structures concept and uses multi dimensions to organize the data. Object-oriented structure has not only the attributes of the entity, but also contain the operations that can be performed on it.…

    • 750 Words
    • 3 Pages
    Good Essays
  • Good Essays

    The first thing I did was to jump into Google and make a search on "List Building Definition". However, not to my surprise, nothing relevant came up!…

    • 1691 Words
    • 7 Pages
    Good Essays
  • Powerful Essays

    C# syntax is highly expressive, yet it is also simple and easy to learn. The curly-brace syntax of C# will be instantly recognizable to anyone familiar with C, C++ or Java. Developers who know any of these languages are typically able to begin to work productively in C# within a very short time. C# syntax simplifies many of the complexities of C++ and provides powerful features such as nullable value types, enumerations, delegates, lambda expressions and direct memory access, which are not found in Java. C# supports generic methods and types, which provide increased type safety and performance, and integrators, which enable implementers of collection classes to define custom iteration behaviors that are simple to use by client code. Language-Integrated Query (LINQ) expressions make the strongly-typed query a first-class language…

    • 1000 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    Interface Classes

    • 594 Words
    • 3 Pages

    • primitive types: int, double, boolean, long, float, char, .. note: java will "coerce" some types into other types: double number = 4; • Object types: Every class • Arrays : int[ ], double[ ][ ], Balloon[ ], defines a type • Predefined: String, Color, File, Scanner, … • Programmer defined: CartoonFigure, Balloon, BalloonGame, … • Type of object determined at its creation: • new Balloon(100, 300) ⇒ a Balloon object • new File ("data.txt") ⇒ a File object • new int[100][100] ⇒ an array of arrays of int. • "Hello" ⇒ a String…

    • 594 Words
    • 3 Pages
    Satisfactory Essays

Related Topics