Tuesday, September 16, 2025

 DATA STRUCTURES

1.1 INTRODUCTION 

This chapter introduces the subject of data structures and presents an overview of the content of the text. Basic terminology and concepts will be defined and relevant examples provided. An overview of data organization and certain data structures will be covered along with a discussion of the. different operations which are applied to these data structures. Last, we will introduce the notion of an algorithm and its complexity, and we will discuss the time-space tradeoff that may occur in choosing a particular algorithm and data structure for a given problem.

1.2 BASIC TERMINOLOGY; ELEMENTARY DATA ORGANIZATION

Data are simply values or sets of values. A data item refers to a single unit of values. Data items that are divided into subitems are called group items; those that are not are called elementary items. For example, an employee's name may be divided into three subitems-first name, middle initial and last name-but the social security number would normally be treated as a single item. Collections of data are frequently organized into a hierarchy of fields, records and files. order to make these terms more precise, we introduce some additional terminology. An entity is something that has certain attributes or properties which may be assigned values In The values themselves may be either numeric or nonnumeric. For example, the following are possible attributes and their corresponding values for an entity, an employee of a given organization: 

Attributes: Name                           Age         Sex         Social Security Number 

Values: ROHLAND, GAIL            34            F                 134-24-5533

Each record in a file may contain many(a) (b) Suppose an automobile dealership maintains an inventory file where each record contains the following data: Serial Number, Type, Year, Price, Accessories The Serial Number field can serve as a primary key for the file, since each automobile has a unique serial number. Suppose an organization maintains a membership file where each record contains the following data: Name, Address, Telephone Number, Dues Owed field items, but the value in a certain field may uniquely determine the record in the file. Such a field K is called a primary key, and the values k1, k2,... in such a field are called keys or key values.

Example 1.1

(a) Suppose an automobile dealership maintains an inventory file where each record contains the following data: 

                                   Serial Number,   Type,   Year,    Price,    Accessories 

The Serial Number field can serve as a primary key for the file, since each automobile has a unique serial number. 

(b)Suppose an organization maintains a membership file where each record contains the following data:                 Name,        Address,     Telephone Number,       Dues Owed

Name and Address may be group items. Here the Name field is a primary key. Note that the Address and Telephone Number fields may not serve as primary keys, since some members may belong to the same family and have the same address and telephone number.

Records may also be classified according to length. A file can have fixed-length records or variable-length records. In fixed-length records, all the records contain the same data items with the same amount of space assigned to each data item. In variable-length records, file records may contain different lengths. For example, student records usually have variable lengths, since different students take different numbers of courses. Usually, variable-length records have a minimum and a maximum length.

1. Logical or mathematical description of the structure 

2. Implementation of the structure on a computer 

3. Quantitative analysis of the structure, which includes determining the amount of memory needed to store the structure and the time required to process the structure. 

The next section introduces us to some of these data structures.


Monday, September 1, 2025

TEACHER'S DAY

SEP 05 2025
Teacher's Day is a special occasion celebrated worldwide to honor and appreciate the contributions of teachers in shaping individuals and society. The date and traditions of Teacher's Day vary from country to country, but the common theme is respect, gratitude, and recognition of teachers' hard work and dedication.
  • Traditions commonly involve giving gifts like flowers and cards, holding speeches, ceremonies, and cultural performances.

    Sarvepalli Radhakrishnan

    Sarvepalli Radhakrishnan (September 5, 1888 – April 16, 1975) was a distinguished Indian philosopher, scholar, teacher, and statesman. He was the second President of India, serving from 1962 to 1967. Before his presidency, he was a professor of philosophy at several Indian universities and at the University of Oxford. He also served as Vice-Chancellor of Andhra University and Banaras Hindu University, and Chancellor of the University of Delhi. Radhakrishnan was known for his efforts to bridge Eastern and Western philosophies, particularly his works on Hinduism and comparative religion. His scholarly work promoted the depth and philosophical richness of Indian traditions to the West.

    He was a strong advocate for education and intellectual leadership and emphasized the coexistence of science and religion. His birthday, September 5, is celebrated as Teacher's Day in India in honor of his contribution to education. Radhakrishnan was also India's first Vice President (1952-1962) and held diplomatic roles such as ambassador to the Soviet Union. He received many accolades, including the Templeton Prize in 1975 and recognition for his scholarly and public service contributions.

    Notable aspects of his life include his dedication to education, philosophy, and his promotion of India's cultural heritage on the global stage. He authored key philosophical texts including "Indian Philosophy" and works on Rabindranath Tagore and Gautama Buddha.

    In summary, Sarvepalli Radhakrishnan was a philosopher-statesman whose legacy combines philosophy, education, and political leadership, making him one of the most respected figures in modern Indian history. 

 NLP UNIT-2 Grammars and Parsing – Top- Down and Bottom- Up Parsers 4 1. Grammars in Natural Language Processing Definition A grammar is a ...