CC04 Chapter 1
CC04 Chapter 1
1
MODULE Data Structure and Algorithms – CC04
Audience
This tutorial is designed for Computer Science graduates as well as Software
Professionals who are willing to learn data structures and algorithm
programming in simple and easy steps.
After completing this tutorial you will be at intermediate level of expertise from
where you can take yourself to higher level of expertise.
2
MODULE Data Structure and Algorithms – CC04
Prerequisites
Before proceeding with this tutorial, you should have a basic understanding
of C programming language, text editor, and execution of programs, etc.
3
MODULE Data Structure and Algorithms – CC04
Basic Terminology
• Data − Data are values or set of values.
• Data Item − Data item refers to single unit of values.
• Group Items − Data items that are divided into sub items are called as
Group Items.
• Elementary Items − Data items that cannot be divided are called as
Elementary Items.
• Attribute and Entity − An entity is that which contains certain attributes
or properties, which may be assigned values.
• Entity Set − Entities of similar attributes form an entity set.
4
MODULE Data Structure and Algorithms – CC04
5
MODULE Data Structure and Algorithms – CC04
The following section guides you on how to install GNU C/C++ compiler on
various OS. We are mentioning C/C++ together because GNU GCC compiler
works for both C and C++ programming languages.
Installation on UNIX/Linux
If you are using Linux or UNIX, then check whether GCC is installed on your
system by entering the following command from the command line −
$ gcc -v
If you have GNU compiler installed on your machine, then it should print a
message such as the following −
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix = /usr .......
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)
If GCC is not installed, then you will have to install it yourself using the
detailed instructions available at https://gcc.gnu.org/install/
This tutorial has been written based on Linux and all the given examples
have been compiled on Cent OS flavor of Linux system.
Installation on Mac OS
If you use Mac OS X, the easiest way to obtain GCC is to download the
Xcode development environment from Apple's website and follow the simple
installation instructions. Once you have Xcode setup, you will be able to use
GNU compiler for C/C++.
Xcode is currently available at developer.apple.com/technologies/tools/
Installation on Windows
To install GCC on Windows, you need to install MinGW. To install MinGW, go
to the MinGW homepage, www.mingw.org, and follow the link to the MinGW
download page. Download the latest version of the MinGW installation
program, which should be named MinGW-<version>.exe.
6
MODULE Data Structure and Algorithms – CC04
For more knowledge about this topic, please check the link provided
https://www.youtube.com/watch?v=4RLhuZ3N9nc