Posts by Karthik Desingu

Author Biographical Info: Not available

Inter-Conversion of Postfix and Infix Expression in Python

By Karthik Desingu

This post deals with an algorithm to inter-convert between postfix and infix expressions in Python. Prerequisites: Basics of python classes and objects, arrays and strings (refer t.... Read More

Perceptron Neural Network for Logical “OR” Operation in Python

By Karthik Desingu

This post deals with a short introduction to neural networks. Then, implementation of training a simple perceptron neural network for the logical “or” operation in Pyth.... Read More

Underscore Methods in Python

By Karthik Desingu

Anyone who has started object-oriented programming in Python would have come across functions that look like “__<func_name>__(self)”. These are called underscore .... Read More

Pattern Search in String Using Python – Naive Method

By Karthik Desingu

The following post deals with pattern search in a string i.e looking for the occurrences of a substring in a given string and displaying the starting index. It uses the naive metho.... Read More

Pattern Search in String with Rabin-Karp Algorithm in Python

By Karthik Desingu

Searching for a string pattern in the main string using the naive algorithm may be time-consuming and inefficient. The following post deals with a slightly more efficient method &#.... Read More

User-Defined Errors In Python

By Karthik Desingu

This post provides a way of generating or raising and error based on the user’s conditions in contrast to the common errors raised by the compiler/interpreter. We call such e.... Read More

Inter-Convert Decimal and Any Base Using Python

By Karthik Desingu

This post deals with the methods to inter-convert decimal to any base system number into any base depending on the user input in Python. Prerequisites: Basics of python looping con.... Read More

How to Add Nodes to Linked Lists in Python

By Karthik Desingu

This post discusses how to add nodes to a linked list as well as display the contents of a linked list in Python. While linked lists are mainly associated with pointers, a concept .... Read More