AIML NOTES UNIT-4
AIML NOTES UNIT-4
The memory devices used for primary The secondary memory devices are
memory are semiconductor memories. magnetic and optical memories.
It can hold data/information currently being It can hold data/information that are not
used by the processing unit. currently being used by the processing unit.
Examples: RAM, ROM, Cache memory, Examples: Hard Disk, Floppy Disk, Magnetic
PROM, EPROM, Registers, etc. Tapes, etc.
ASSOSCIATE MEMORY[TOPIC-4]
Associative memory is designed to quickly find matching data, even when the search query is
incomplete or imprecise. This is achieved by using parallel processing techniques, where
multiple search queries can be performed simultaneously.
The search is also performed in a single step, as opposed to conventional memory where
multiple steps are required to locate the data.
Hardware organization of associative memory:-
Block Diagram of associative memory
Argument Register: It contains words to be searched. It contains ‘n’ number of bits.
Match Register: It has m-bits, One bit corresponding to each word in the memory array.
After the making process, the bits corresponding to matching words in match register
are set to ‘1’.
Key Register: It provides a mask of choosing a particular field/key in argument register. It
specifies which part of the argument word need to be compared with words in memory.
Associative Memory Array: It combines word in that are to be compared with the
arguments word in parallel. It contains ‘m’ words with ‘n’ bit per word.
Applications of Associative memory :-
1. It can be only used in memory allocation format.
2. It is widely used in the database management systems, etc.
3. Networking: Associative memory is used in network routing tables to quickly find the
path to a destination network based on its address.
4. Image processing: Associative memory is used in image processing applications to search
for specific features or patterns within an image.
5. Artificial intelligence: Associative memory is used in artificial intelligence applications
such as expert systems and pattern recognition.
6. Database management: Associative memory can be used in database management
systems to quickly retrieve data based on its content.
Advantages of Associative memory :-
1. It is used where search time needs to be less or short.
2. It is suitable for parallel searches.
3. It is often used to speedup databases.
4. It is used in page tables used by the virtual memory and used in neural networks.
Disadvantages of Associative memory :-
1. It is more expensive than RAM
1. Each cell must have storage capability and logical circuits for matching its content with
external argument.
Whereas all
the physical
addresses
The set of all the logical mapped to
addresses generated about a the logical
Address space
program by the CPU is called address is
Logical Address Space. called
Physical
Address
Space.
LOCALITY OF REFERENCE[TOPIC-7]
Locality of reference refers to a phenomenon in which a computer program tends to
access same set of memory locations for a particular time period.
In other words, Locality of Reference refers to the tendency of the computer program to
access instructions whose addresses are near one another.
The property of locality of reference is mainly shown by loops and subroutine calls in a
program.
1. In case of loops in program control processing unit repeatedly refers to the set
of instructions that constitute the loop.
2. In case of subroutine calls, every time the set of instructions are fetched from
memory.
3. References to data items also get localized that means same data item is
referenced again and again.