Found 26504 Articles for Server Side Programming

Golang program to implement a trie with compressed nodes

Akhil Sharma
Updated on 05-Sep-2023 17:57:26

226 Views

Tries are tree-like data structures used for efficient storage and retrieval of strings, making them invaluable for tasks like autocomplete, dictionary implementation, and pattern matching. The compressed node technique optimises space usage by merging common prefixes among nodes, resulting in a more memory-efficient Trie. In this article, we will explore the implementation of a Trie with Compressed Nodes in Golang using two methods to implement the Trie with Compressed Nodes, the first method utilises maps, and the second method uses arrays. Explanation A compressed trie is a trie data structure that saves the space by combining consecutive nodes with ... Read More

Golang program to implement a double ended priority queue

Akhil Sharma
Updated on 05-Sep-2023 17:54:25

259 Views

A Double Ended Priority Queue, in short DEPQ is a data structure that extends the functionality of a standard priority queue. In this article, we will implement a double ended priority queue in Golang using two methods: the first method uses two separate heaps for maximum and minimum priorities, while the second method augments a single heap with additional information for efficient queries. In the code examples we are going to perform the operations like insertion retrieval, deletion and updation. Explanation Double ended priority queue is a data structure that allows insertion and deletion operations and it allows efficient ... Read More

Golang program to implement a hash table with linear probing

Akhil Sharma
Updated on 05-Sep-2023 17:44:25

601 Views

Hash tables are efficient data structures used to store key-value pairs, making them essential for various applications. Linear probing is a collision resolution technique that helps handle situations when two keys map to the same index in the hash table. In this article, we will explore the implementation of a Hash Table with Linear Probing in Golang, using arrays and maps, gaining insights into their workings and practical applications. In the below examples we are going to perform insertion and retrieval operations using a hash mechanism and collision resolution strategy. Explanation In the below example, keys [10 , 25, ... Read More

Golang program to implement a deque using doubly linked list

Akhil Sharma
Updated on 05-Sep-2023 17:39:12

384 Views

A deque is a versatile data structure that allows insertion and deletion of elements from both ends efficiently. The doubly linked list provides an excellent foundation for building a deque as it allows easy traversal in both directions. In this article, we will explore deque using doubly linked lists in go with two methods: using a custom doubly linked list and using the built-in container/list package in Golang. Here in the below examples we will showcase the operations of a double ended queue, we will perform the insertion and deletion operations at both the ends. Explanation As you can see ... Read More

Remove all duplicates and permutations in a nested list in Python

Pranavnath
Updated on 04-Sep-2023 16:43:51

1K+ Views

Removing duplicates and changes from a settled list in Python could be a common errand that makes a difference streamline information and maintain a strategic distance from excess or dreary components. In this article, we point to extricate an interesting set of sublists from the settled list, disposing of any duplicates or stages. By doing so, we will streamline further operations and guarantee information keenness. In this article, we are going investigate three diverse approaches to attain this objective. Each approach will go with step-by-step clarifications, Python code, and yield, empowering you to get it and execute the foremost reasonable ... Read More

Bar Charts Using Python Vincent

Pranavnath
Updated on 04-Sep-2023 16:42:25

281 Views

Bar charts are a popular visualization tool for displaying categorical information. They give a clear and brief way to compare different categories or bunches. Vincent is a Python library that gives an easy-to-use interface for making intelligent visualizations. It is built on top of the well-known plotting library, Matplotlib, and gives a more declarative syntax for creating visualizations. With Vincent, you'll be able to make bar charts, line plots, diffuse plots, and more.  In this article, we will investigate how to form bar charts utilizing the Python library Vincent. Python Vincent Python Vincent, moreover known as Vincent, is a ... Read More

Basic Gantt Chart Using Python Matplotlib

Pranavnath
Updated on 04-Sep-2023 16:40:23

5K+ Views

Project management could be a complex endeavor that requires cautious arranging, organization, and following of errands and timelines. Gantt charts have long been a staple in extended administration, giving a visual representation of venture plans, errand lengths, and conditions. These charts empower venture directors and groups to successfully arrange, screen, and communicate extend advance. In this article, we'll set out on a travel to make essential basic fundamental essential Synonyms Gantt charts utilizing the effective Python library, Matplotlib. By leveraging Matplotlib's plotting capabilities, we will make energetic and instructive Gantt charts that upgrade and extend visualization and decision-making. Basic Gantt ... Read More

Relative Layout in Python Kivy

Pranavnath
Updated on 04-Sep-2023 16:35:55

236 Views

The Relative Layout in Python Kivy may be a powerful format supervisor that permits designers to form energetic and adaptable client interfacing. It empowers the situating and measuring of widgets based on their connections to other widgets or the format itself. By utilizing grapple focuses and relative situating, designers can plan to interface that adjusts to distinctive screen sizes and introductions. The Relative Format utilizes calculations for measuring gadget sizes, situating them precisely, and overhauling the format powerfully. With its flexibility and ease of usage, the Relative Format is a fundamental apparatus for making outwardly engaging and responsive client interfacing ... Read More

Random Password Generator using Python Tkinter

Pranavnath
Updated on 04-Sep-2023 16:32:42

1K+ Views

The tkinter module in Python gives a straightforward and proficient way to form graphical client interfaces (GUI). By utilizing tkinter, able to make an irregular secret word generator window. The interface ordinarily comprises a button that triggers the watchword era and a name to show the created secret word. Interior the secret word era work, characters are arbitrarily chosen from a characterized set, such as alphanumeric characters and uncommon images. The produced watchword is at that point shown within the name. With tkinter's user-friendly highlights and the adaptability of arbitrary secret word era, clients can effortlessly produce secure and one ... Read More

Real time currency converter using Python Tkinter

Pranavnath
Updated on 04-Sep-2023 16:30:53

1K+ Views

In today's globalized world, cash transformation plays an imperative part in different monetary exchanges and worldwide exchanges. Whether you're arranging a trip overseas, overseeing outside ventures, or running multinational commerce, having to get to real-time money change is basic. In this article, we are going investigate how to construct a real-time money converter utilizing Python Tkinter, a prevalent GUI toolkit. By leveraging the power of Python and Tkinter, ready to make an instinctive and user-friendly application that not as it were performs exact cash transformations but to gives an intuitive interface for clients to input their craved sums and select ... Read More

Advertisements