<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Srihari Athiyarath on Medium]]></title>
        <description><![CDATA[Stories by Srihari Athiyarath on Medium]]></description>
        <link>https://medium.com/@srihari.athiyarath?source=rss-611ea1b728a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ltCKg2Owh_0e4EL0</url>
            <title>Stories by Srihari Athiyarath on Medium</title>
            <link>https://medium.com/@srihari.athiyarath?source=rss-611ea1b728a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:08:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@srihari.athiyarath/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Analysis of various Time Series Forecasting Techniques]]></title>
            <link>https://medium.com/@srihari.athiyarath/analysis-of-various-time-series-forecasting-techniques-11689f73c82d?source=rss-611ea1b728a------2</link>
            <guid isPermaLink="false">https://medium.com/p/11689f73c82d</guid>
            <category><![CDATA[time-series-analysis]]></category>
            <category><![CDATA[time-series-forecasting]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[springer]]></category>
            <dc:creator><![CDATA[Srihari Athiyarath]]></dc:creator>
            <pubDate>Fri, 22 May 2020 19:31:06 GMT</pubDate>
            <atom:updated>2020-05-22T19:31:06.326Z</atom:updated>
            <content:encoded><![CDATA[<p>The concept of time series analysis has come a long way right since its inception. Plenty of research has been done in time series analysis to accomplish multiple objectives. Even in today’s machine learning and deep learning era, time series forecasting plays a crucial role to make important business decisions. Since the time series data are in real time, it can be used in organizations such as power management, stock market, health care, business, marketing, weather forecasting and many more. Time series prediction is essentially a part of temporal data mining and statistics. It is the process of careful collection and rigorous study of data that has been collected over a continuous period and development of a proper model that describes the inherent trend of the series.</p><p>Time series forecasting is a process to predict the future with the help of history data. The assumption of time series forecasting is that the information will repeat itself in near future. The core intent of this paper is to synthesize and survey all crucial categories of time series methods that have been developed in areas of applied mathematics, technology, operations research and economic sciences. The objective of the work that follows is to create awareness of the time series analysis in various domains using the existing relevant work already available. By doing so, we hope to alleviate the communication gap between different disciplines considering how difficult this task is.</p><p>Time series data abound in many realistic domains. The proper study and analysis of time series data help to make important decisions. Study of such data is very useful in many applications where there are trendy changes with time or specific seasonality as in electricity demand, cloud workload, weather and sales, cost of business products, etc. By understanding the nature of the time series and the objective of analysis, we have used different approaches to learn and extract meaningful information that can satisfy the business needs.</p><p>Various methods have been applied for time series forecasting. We have divided those into four categories.</p><h4>1. Regression Method</h4><h4>2. Stochastic Approach</h4><h4>3. Soft Computing Techniques</h4><h4>4.Fuzzy Logic Forecasting</h4><p>For all those interested in learning about what machine learning algorithm is apt for which particular dataset(specific to time series analysis) kindly refer our research paper given below:</p><p><a href="https://link.springer.com/article/10.1007/s42979-020-00180-5?wt_mc=Internal.Event.1.SEM.ArticleAuthorIncrementalIssue">A Comparative Study and Analysis of Time Series Forecasting Techniques</a></p><p><strong>What is our conclusion from this ??</strong></p><p>In today’s world, there are a wide variety of methods that can be utilized to fit forecasting, control methods and estimations which involve time series. In our paper , we have described, implemented and summarized different forecasting models. We have analyzed and predicted using different time series model based on a variety of discrete datasets considering its stationarity, seasonality as well as its trend. As per our survey, it is proven that the performance of the models depends on the time space (short, mid or long). For short-range LSTMs, CNN and weighted MVFTS, CBLSTM performed quite well, whereas for midterm as well as long term, ARIMA and MVFTS, CBLSTM provided momentous results. From a satisfactory understanding about the considered forecasting models, we can conclude that linear regression failed to perform in all the time spaces while weighted MVFTS and CBLSTM outperformed the rest of the models. Our future work will be to develop a hybrid model and carry out an empirical study to identify the top forecasting techniques in the field of power management and green computing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11689f73c82d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bitwise AND of Numbers Range(Python)]]></title>
            <link>https://medium.com/@srihari.athiyarath/bitwise-and-of-numbers-range-python-388d0c3f5298?source=rss-611ea1b728a------2</link>
            <guid isPermaLink="false">https://medium.com/p/388d0c3f5298</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[problem-solving]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[leetcode]]></category>
            <dc:creator><![CDATA[Srihari Athiyarath]]></dc:creator>
            <pubDate>Thu, 23 Apr 2020 14:18:01 GMT</pubDate>
            <atom:updated>2020-04-23T14:18:01.900Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bitwise AND of Numbers Range</h3><p>Another LC 30 Day challenge problem that I came across . A very straight forward problem which goes like this .</p><p>Given a range [m, n] where 0 &lt;= m &lt;= n &lt;= 2147483647, return the bitwise AND of all numbers in this range, inclusive.</p><p><strong>Example 1:</strong></p><pre><strong>Input:</strong> [5,7]<br><strong>Output:</strong> 4</pre><p><strong>Example 2:</strong></p><pre><strong>Input:</strong> [0,1]<br><strong>Output:</strong> 0</pre><p><strong>Example 3:</strong></p><pre><strong>Input:</strong> [9,12]<br><strong>Output:</strong> </pre><p><strong>Solution :</strong></p><ol><li><strong>Brute Force solution</strong></li></ol><p>Given a range of numbers from 5 to 7 which are nothing but 5,6,7, we need to AND each and every value in that range.</p><p>5 = 0101 <strong>AND</strong> 6 = 0110 =&gt; result1 =0100</p><p>result1 = 0100 <strong>AND </strong>7 = 0111 =&gt; result2 =&gt;0100 which is nothing but 4</p><p><strong>2) “Right-shift Left-shift” solution</strong></p><p>We take the same example of [5,7].</p><p><strong>5 = 0100 &gt;&gt;1 = 0010 = 2</strong></p><p><strong>7 = 0111 &gt;&gt;1 = 0011 = 3</strong></p><p>Now we right shift [2,3]</p><p><strong>2 = 0010&gt;&gt;2 = 0001 = 1</strong></p><p><strong>3 = 0011&gt;&gt;1 = 0001 = 1 — — — — — — — — — — — — — — — — (RES1)</strong></p><p>We go on right shifting the values till we get both the value equal to other, we also keep a counter variable to keep a note on how to rightshift operations. All we have to do now is to perform <strong><em>leftshift (counter) number of times </em></strong>on (RES1) to obtain the final result. In this case the value of the counter is 2 because right-shift is taking place two times till we get the values equal to each other after which it’ll come out of the loop , and then we perform two leftshifts on (RES1) = 0001 after which we will get 0100 = 4 which is the final answer. The python code is given below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*3QSVAJLKz501R58-EKkeQQ.png" /></figure><p><strong>3) LSB flip Solution :</strong></p><p>Flip the LSB of n and check if the new number is in range(m &lt; number &lt; n)or not.If suppose the number greater than ‘m’ then we again flip lsb , if it is not then that’s the answer. To get a better picture let us consider a different example of range <strong>[17,19]</strong><br><strong>n = 10011</strong><br>Flip LSB of <strong>n</strong> so New Number = 10010 i.e. 18<br>18 is in range so Again flip : 10000 i.e. 16 and 16 is ‘m’ so Stop and there is your answer, which is 16. The python code is given below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*C6lMIkfngkMrCWY8i4TPMA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=388d0c3f5298" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leftmost Column with at Least a One]]></title>
            <link>https://medium.com/@srihari.athiyarath/leftmost-column-with-at-least-a-one-24184d8f4052?source=rss-611ea1b728a------2</link>
            <guid isPermaLink="false">https://medium.com/p/24184d8f4052</guid>
            <category><![CDATA[leetcode]]></category>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding-interviews]]></category>
            <dc:creator><![CDATA[Srihari Athiyarath]]></dc:creator>
            <pubDate>Wed, 22 Apr 2020 01:52:26 GMT</pubDate>
            <atom:updated>2020-04-23T14:19:05.788Z</atom:updated>
            <content:encoded><![CDATA[<h3>Leftmost Column with at Least a One(Python)</h3><p>I came across this problem on the LC 30 day challenge (Day 21).The problem goes like this.</p><p>Given a binary matrix (with just 0 and 1) . For each <strong>individual</strong> row of the matrix, this row is sorted in non-decreasing order.Given a row-sorted binary matrix binaryMatrix, return leftmost column index(0-indexed) with at least a 1 in it. If such index doesn&#39;t exist, return -1.</p><p><strong>You can’t access the Binary Matrix directly.</strong> You may only access the matrix using a BinaryMatrix interface:</p><ul><li><strong>BinaryMatrix.get(x, y) returns the element of the matrix at index </strong><strong>(x, y) (0-indexed).</strong></li><li><strong>BinaryMatrix.dimensions() returns a list of 2 elements </strong><strong>[n, m], which means the matrix is </strong><strong>n * m.</strong></li></ul><p>The constraints of the problem given are:</p><ul><li><strong>1 &lt;= mat.length, mat[i].length &lt;= 100</strong></li><li><strong>mat[i][j] is either </strong><strong>0 or </strong><strong>1.</strong></li><li><strong>mat[i] is sorted in a non-decreasing wa</strong>y.</li></ul><p><strong>Example:</strong></p><pre><strong>Input</strong> = [[0,0],[1,1]]<br><strong>Output:</strong> 0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/81/0*dPPLr0yBDodctmI_.jpg" /></figure><pre><strong>Input</strong> = [[0,0,0,1],[0,0,1,1],[0,1,1,1]]<br><strong>Output:</strong> 1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/161/0*-u8VyCvnY7DZ49K3.jpg" /></figure><pre><strong>Input</strong> = [[0,0],[0,0]]<br><strong>Output:</strong> -1</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/81/1*Zyn-DqcvZTvyq76OJV9PTA.png" /></figure><p>SOLUTION</p><p><strong>Brute Force :</strong></p><p>Let us start off simple ,the easiest and the most obvious approach to find leftmost column with at least a one is to go through each and every element of the matrix , this however is very expensive and will not work given that the constraint “Submissions making more than 1000 calls to BinaryMatrix.get will be judged <em>Wrong Answer” .</em></p><p><strong>O( R log C) Solution:</strong></p><p>One important hint in this question is the fact that the matix is always sorted in a <strong>non decreasing order</strong>. A binary search like approach can be used. In this approach we go through each row and try to find the <strong>left most one</strong>. We also keep a pointer that initially holds the the number of columns +1 value and go on decrementing it as and when we find the the leftmost one.This process fastens the Binary search further even further and eleminates unwanted searches. The search takes a time of O(log C) and because its going through every row we get a time complexity of O(RlogC).The python code is shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*weNGpKjq2U6p6ELSQINfTw.png" /></figure><p><strong>O(R+C) Solution (Like to call it the Ladder approach)</strong></p><p>In this algorithm we keep on moving left starting from bottom-right till we encounter a one and when we encounter a zero we move one step up and move on to the next row , and we continue doing this until we go out of bounds. So in the worst case we will only be traversing O(R+C) .The python code is shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4tTz06ow2gRkkvGlJzyUDA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24184d8f4052" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>