<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dictionary | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/dictionary/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Wed, 28 Sep 2022 16:50:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>Dictionary</title>
		<link>https://studentprojects.in/software-development/dictionary/</link>
					<comments>https://studentprojects.in/software-development/dictionary/#respond</comments>
		
		<dc:creator><![CDATA[Shubhajna Rai]]></dc:creator>
		<pubDate>Wed, 28 Sep 2022 16:34:39 +0000</pubDate>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Dictionary]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=9580</guid>

					<description><![CDATA[<p>A collection of things in a Python dictionary is not sorted. The dictionary contains key and value pairs for each entry. Every programming language has unique characteristics, also referred to as core characteristics. Having said that, &#8220;dictionaries&#8221; is the only pre-installed feature of Python. Dictionaries might resemble a &#8220;List&#8221; quite a bit. However, dictionaries have</p>
<p>The post <a href="https://studentprojects.in/software-development/dictionary/">Dictionary</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p></p>



<p>A collection of things in a Python dictionary is not sorted. The dictionary contains key and value pairs for each entry.</p>



<p>Every programming language has unique characteristics, also referred to as core characteristics. Having said that, &#8220;dictionaries&#8221; is the only pre-installed feature of Python. Dictionaries might resemble a &#8220;List&#8221; quite a bit. However, dictionaries have several unique characteristics that do not apply to other data types, such as lists, and these characteristics make it (the Python dictionary) unique.</p>



<p>Here are some crucial characteristics of a Python dictionary:</p>



<p>It has no order (no sequence is required &#8211; data or entries have no order)</p>



<p>It is changeable (values can be altered even after it has been created, or new data or information can be added to the existing dictionary, or an entry can be completely removed).</p>



<p>It is indexed (indexing is done via keys in dictionaries, which contain key-value pairs. The compiler now stores the entries in the order they are created after the Python 3.7 release.</p>



<p>No data duplication (each key is unique; no two keys can have the same name, so there is no chance for a data being overridden)</p>



<p>To explain how it functions, its syntax consists of key and values separated by colons in curly brackets, where the key is used as a keyword, as we see in real-world dictionaries, and the values are similar to the explanation of the key or what the key holds (the value).</p>



<p>As in a traditional Oxford dictionary, if we don&#8217;t know the word or its spelling, we can&#8217;t get its definition. Similarly, for the effective retrieval of the data, we need to know the key so that we may access its value. Let&#8217;s examine a Python dictionary&#8217;s syntax:</p>



<p>a = {&#8216;key&#8217;, &#8216;value&#8217;, &#8216;cow&#8217;:&#8217;mooh&#8217;}</p>



<p>print(a[&#8216;cow&#8217;])</p>



<p>#will print &#8220;mooh&#8221; on the screen</p>



<p>We no longer need to write much of our code by hand, like in C or C++, thanks to dictionaries. I&#8217;m referring to the several built-in dictionary methods that Python offers us, which can help us complete our tasks more quickly and with less code. These include the methods clear(), copy(), popitem(), and others. The best thing about them is that learning how to use them doesn&#8217;t take much more work because, for the most part, their names already indicate what they do. For example, the function clear() will empty a dictionary of all entries, while copy() will duplicate it.</p>



<p>A dictionary offers a variety of distinctive properties, including:</p>



<p>We are able to store heterogeneous data in our dictionary, which includes numbers, strings, tuples, and other objects.</p>



<p>A single list can include various data kinds, increasing the usefulness of particular dictionary keys.</p>



<p>Essentially, this was a discussion of Python dictionaries. In the video instruction, you will learn further information as well as explanations and implementation.</p><p>The post <a href="https://studentprojects.in/software-development/dictionary/">Dictionary</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/dictionary/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>C++ program to implement all the functions of a dictionary (ADT) using hashing</title>
		<link>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-data-structure/c-program-to-implement-all-the-functions-of-a-dictionary-adt-using-hashing/</link>
					<comments>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-data-structure/c-program-to-implement-all-the-functions-of-a-dictionary-adt-using-hashing/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Wed, 10 Mar 2010 17:10:58 +0000</pubDate>
				<category><![CDATA[Data structure]]></category>
		<category><![CDATA[Source Codes]]></category>
		<category><![CDATA[c programs]]></category>
		<category><![CDATA[ADT]]></category>
		<category><![CDATA[Hashing]]></category>
		<category><![CDATA[linked list]]></category>
		<category><![CDATA[Dictionary]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=1001</guid>

					<description><![CDATA[<p>class Dictionary<br />
{<br />
public:<br />
  int index;</p>
<p>  Dictionary();<br />
  void insert(int);<br />
  void search(int);<br />
  void delete_ele(int);<br />
};</p>
<p>The post <a href="https://studentprojects.in/software-development/cpp/cpp-programs/cpp-data-structure/c-program-to-implement-all-the-functions-of-a-dictionary-adt-using-hashing/">C++ program to implement all the functions of a dictionary (ADT) using hashing</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>/* Write a C++ program to implement all the functions of a dictionary (ADT) using hashing */</p>
<pre lang="cpp">
#include<iostream>
#include<conio.h>
#include<stdlib.h>
using namespace std;
# define max 10

typedef struct list
{
int data;
struct list  *next;
}node_type;
node_type *ptr[max],*root[max],*temp[max];
 
class Dictionary
{
public:
  int index;

  Dictionary();
  void insert(int);
  void search(int);
  void delete_ele(int);
};

Dictionary::Dictionary()
{
index=-1;
for(int i=0;i<max;i++)
{
root[i]=NULL;
ptr[i]=NULL;
temp[i]=NULL;
}
}

void Dictionary::insert(int key)
{
index=int(key%max);
ptr[index]=(node_type*)malloc(sizeof(node_type));
ptr[index]->data=key;
if(root[index]==NULL)
{
root[index]=ptr[index];
root[index]->next=NULL;
temp[index]=ptr[index];
}

else
{
temp[index]=root[index];
while(temp[index]->next!=NULL)
temp[index]=temp[index]->next;
temp[index]->next=ptr[index];
}
}

void Dictionary::search(int key)
{
int flag=0;
index=int(key%max);
temp[index]=root[index];
while(temp[index]!=NULL)
{
if(temp[index]->data==key)
{
cout<<"\nSearch key is found!!";
flag=1;
break;
}
else temp[index]=temp[index]->next;
}
if (flag==0)
cout<<"\nsearch key not found.......";
}

void Dictionary::delete_ele(int key)
{
index=int(key%max);
temp[index]=root[index];
while(temp[index]->data!=key && temp[index]!=NULL)
{
ptr[index]=temp[index];
temp[index]=temp[index]->next;
}
ptr[index]->next=temp[index]->next;
cout<<"\n"<<temp[index]->data<<" has been deleted.";
temp[index]->data=-1;
temp[index]=NULL;
free(temp[index]);
}

main()
{
int val,ch,n,num;
char c;
Dictionary d;

do
{
cout<<"\nMENU:\n1.Create";
cout<<"\n2.Search for a value\n3.Delete an value";
cout<<"\nEnter your choice:";
cin>>ch;
switch(ch)
{
case 1:cout<<"\nEnter the number of elements to be inserted:";
       cin>>n;
       cout<<"\nEnter the elements to be inserted:";
       for(int i=0;i<n;i++)
       {
       cin>>num;
       d.insert(num);
       }
       break;
case 2:cout<<"\nEnter the element to be searched:";
       cin>>n;
       d.search(n);
case 3:cout<<"\nEnter the element to be deleted:";
       cin>>n;
       d.delete_ele(n);
       break;
default:cout<<"\nInvalid choice....";
}
cout<<"\nEnter y to continue......";
cin>>c;
}while(c=='y');
getch();
}
</pre>
<p><strong>OUTPUT</strong></p>
<p>MENU:<br />
1.Create<br />
2.Search for a value<br />
3.Delete an value<br />
Enter your choice:1</p>
<p>Enter the number of elements to be inserted:8</p>
<p>Enter the elements to be inserted:10 4 5 8 7 12 6 1</p>
<p>Enter y to continue&#8230;&#8230;y</p>
<p>MENU:<br />
1.Create<br />
2.Search for a value<br />
3.Delete an value<br />
Enter your choice:2</p>
<p>Enter the element to be searched:12</p>
<p>Search key is found!!<br />
Enter the element to be deleted:1</p>
<p>1 has been deleted.<br />
Enter y to continue&#8230;&#8230;y</p><p>The post <a href="https://studentprojects.in/software-development/cpp/cpp-programs/cpp-data-structure/c-program-to-implement-all-the-functions-of-a-dictionary-adt-using-hashing/">C++ program to implement all the functions of a dictionary (ADT) using hashing</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-data-structure/c-program-to-implement-all-the-functions-of-a-dictionary-adt-using-hashing/feed/</wfw:commentRss>
			<slash:comments>20</slash:comments>
		
		
			</item>
	</channel>
</rss>
