Basic DSA algorithms using C

A complete guide ds Termwork 1 - Infix evaluation Algorithm Create an empty stack (operandStack) to store operands and an empty stack (operatorStack) to store operators. Initialize a variable (result) to store the final output Iterate through each character of the infix expression. If the current character is an operand, add it to the operandStack. If the current character is an operator, pop operators from operatorStack and add them to operandStack until an operator with lower precedence is found....

November 16, 2023 · 24 min · 4913 words · Aum Pauskar

Using i386 IC using Keil uVision5 and Embedded C

Embedded C Embedded C is used in embedded systems and iot deviced such as Arduino and mico IC’s. To emulate this we can use Keil, however this can be only run on Windows, to run this on linux based distros use wine. Procedure to run The following are the steps to run a code on Keil Note: Here we are working on intel 8051AH microcontroller Install and run keil If you are on a windows system you can run the exe file locally, if you are on a linux machine you can run keil through wine and it will function just like you are running it on windows natively....

November 16, 2023 · 4 min · 803 words · Aum Pauskar

Arduino control with peripherals

Arduino 14 IO, 6// ESP 8266 wifi Sketch - name of the program Setup - IO setup Loop - while loop DHT 11 sol moisture SR04 ultrasonic HC05 bluetooth ESP 01 wifi Q. LED blink 1 2 3 4 5 6 7 8 9 10 11 const int ledVar = 13; void setup() { pinMode(ledVar, OUTPUT); } void loop() { digitalWrite(ledVar, HIGH); delay(1000); digitalWrite(ledVar, LOW); delay(1000); } Q. Interface dht 11 with arduino uno and display humidity and temperature on serial monitor 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #include <dht....

November 16, 2023 · 4 min · 707 words · Aum Pauskar

OOPS with Java

Java tutorial Java is a cross platform compiled language that uses jvm (java virtual machine) that can be used in any machine no matter the hardware or software, provided the machine supports jvm FYI The object class is the root of all classes Data can be gatered with the scanner method in the java library but cannot cater charecter type data with the standard library. Those can be gathered by sc = next()....

November 16, 2023 · 22 min · 4594 words · Aum Pauskar

Virtualenv

Python virtual environment Python virtual environemt is a program that aids in creating a serperate virtual environment for each project Requiremnets Python 3 Pip Steps Installing virtual environemnt package 1 pip install virtualenv Creating virtual environent Windows - cmd/powershell 1 py -m venv {your_env_name} Linux 1 python3 -m venv myworld Activating virtual environemt Windows - cmd 1 myworld\Scripts\activate.bat Windows - powershell 1 myworld\Scripts\activate.ps1 Linux 1 source myworld/bin/activate Downloading required packages 1 py -m pip install {required_package}

November 16, 2023 · 1 min · 76 words · Aum Pauskar