Malay Keshav

Download Resume PDF

Malay Keshav

Netaji Subhas Institute of Technology

Posts Categorized / All

First Web App Project (Trip++)

September 24, 2014 | All, Java, Javascript, Python | by malay.keshav

We were required to build a web-app that needed to have the following features :  Suggest itineraries for tourists based on data available on the sites above or from any other source. Best attractions in a city. Paths and expected time required to visit each location. Suggested duration of visit Pictures of attractions The user […]

Part 2 : Making A BitTorrent Client for Streaming Media

June 6, 2014 | All, Open Source, Python | by malay.keshav

Once the peer list has been received from the trackers, its time to connect to these peers and initiate the data exchange. Core Class The Core Class is responsible for managing all the connections with the peers. The connections are managed using the Twisted Framework. The Twisted Framework has uses an Asynchronous Event Driven Engine. […]

Part 1 : Making A BitTorrent Client for Streaming Media

June 5, 2014 | All, Open Source, Python | by malay.keshav

The BitTorrent Protocol is a peer to peer protocol where the file is shared among numerous peers. The file being shared is broken into numerous pieces and these pieces are shared among peers. Each peer can have some or all pieces of the file. A peer can connect to multiple other peers to ask for […]

Python Script to Download Liked Images of a 9gag user

April 10, 2014 | All, Python | by malay.keshav

The following script downloads all posts (non gif) liked by a user on 9gag. The post images are downloaded in the local directory (same as script). The captions for each image is also downloaded and stored in a text file against the file name of the post downloaded. The script can resume/update downloaded posts with […]

2048 Game

AI Script for 2048 to Run Directly on Chrome Console [Javascript]

March 24, 2014 | AI, All, Javascript | by malay.keshav

The following article explains the Game 2048, introduces Javascript and a basic Min-Max algorithm implemented in Javascipt and run on the Google Chrome Developer Tool's Console with an average success rate of ~60%. The 2048  game is a single player 4x4 board game. Using the keyboard/mouse/touch we have to move the numbers to form bigger numbers […]

Working with Twitter API

February 4, 2014 | All, Python, Twitter | by malay.keshav

Recently in our Machine Learning Practical Examination, our group was asked to extract Tweets related to the recent election and predict which Party had the highest probability for winning. The first step for this was to extract information from Twitter. I was familiar with various Twitter API Libraries available for python. But I wanted to […]

ACM ICPC Amritapuri 2013 – Problem C (Ganga Fort) – Solution

December 29, 2013 | ACM ICPC, All, C++, Editorial | by malay.keshav

The problem was simple and could be solved using a sliding window of size K. Although the number of corner cases made it difficult to get the solution Accepted. As a result our team could not complete it during the onsite ACM ICPC Amritapuri 2013 regionals. To begin solving this problem, create the following structure […]

ACM ICPC Amritapuri 2013 – Problem B (Sorted Queues) – Solution

December 29, 2013 | ACM ICPC, All, Editorial | by malay.keshav

This invloved using Linear Dynamic Programming. The subproblem was to divide the Single queue into multiple independent queues and solve for them individually. Let the two queues be A[N] and B[N]. The queue is separated at critical points. These critical points are those indexes i where the following the condition is satisfied : (b[i] > […]