{"id":34524,"date":"2023-03-19T08:39:29","date_gmt":"2023-03-19T03:09:29","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/"},"modified":"2023-03-19T08:39:29","modified_gmt":"2023-03-19T03:09:29","slug":"solved-big-o-how-do-you-calculate-approximate-it","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/","title":{"rendered":"[Solved] Big O, how do you calculate\/approximate it?"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-4852666\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"4852666\" data-parentid=\"3255\" data-score=\"1541\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>I&#8217;ll do my best to explain it here on simple terms, but be warned that this topic takes my students a couple of months to finally grasp. You can find more information on the Chapter 2 of the Data Structures and Algorithms in Java book.<\/p>\n<hr>\n<p>There is no <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/en.wikipedia.org\/wiki\/Halting_problem\">mechanical procedure<\/a> that can be used to get the BigOh.<\/p>\n<p>As a &#8220;cookbook&#8221;, to obtain the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/en.wikipedia.org\/wiki\/Big_Oh_notation\">BigOh<\/a> from a piece of code you first need to realize that you are creating a math formula to count how many steps of computations get executed given an input of some size.<\/p>\n<p>The purpose is simple: to compare algorithms from a theoretical point of view, without the need to execute the code. The lesser the number of steps, the faster the algorithm.<\/p>\n<p>For example, let&#8217;s say you have this piece of code:<\/p>\n<pre><code>int sum(int* data, int N) {\n    int result = 0;               \/\/ 1\n\n    for (int i = 0; i &lt; N; i++) { \/\/ 2\n        result += data[i];        \/\/ 3\n    }\n\n    return result;                \/\/ 4\n}\n<\/code><\/pre>\n<p>This function returns the sum of all the elements of the array, and we want to create a formula to count the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/en.wikipedia.org\/wiki\/Computational_complexity_theory\">computational complexity<\/a> of that function:<\/p>\n<pre><code>Number_Of_Steps = f(N)\n<\/code><\/pre>\n<p>So we have <code>f(N)<\/code>, a function to count the number of computational steps. The input of the function is the size of the structure to process. It means that this function is called such as:<\/p>\n<pre><code>Number_Of_Steps = f(data.length)\n<\/code><\/pre>\n<p>The parameter <code>N<\/code> takes the <code>data.length<\/code> value. Now we need the actual definition of the function <code>f()<\/code>. This is done from the source code, in which each interesting line is numbered from 1 to 4.<\/p>\n<p>There are many ways to calculate the BigOh. From this point forward we are going to assume that every sentence that doesn&#8217;t depend on the size of the input data takes a constant <code>C<\/code> number computational steps.<\/p>\n<p>We are going to add the individual number of steps of the function, and neither the local variable declaration nor the return statement depends on the size of the <code>data<\/code> array.<\/p>\n<p>That means that lines 1 and 4 takes C amount of steps each, and the function is somewhat like this:<\/p>\n<pre><code>f(N) = C + ??? + C\n<\/code><\/pre>\n<p>The next part is to define the value of the <code>for<\/code> statement. Remember that we are counting the number of computational steps, meaning that the body of the <code>for<\/code> statement gets executed <code>N<\/code> times. That&#8217;s the same as adding <code>C<\/code>, <code>N<\/code> times:<\/p>\n<pre><code>f(N) = C + (C + C + ... + C) + C = C + N * C + C\n<\/code><\/pre>\n<p>There is no mechanical rule to count how many times the body of the <code>for<\/code> gets executed, you need to count it by looking at what does the code do. To simplify the calculations, we are ignoring the variable initialization, condition and increment parts of the <code>for<\/code> statement.<\/p>\n<p>To get the actual BigOh we need the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/en.wikipedia.org\/wiki\/Asymptotic_analysis\">Asymptotic analysis<\/a> of the function. This is roughly done like this:<\/p>\n<ol>\n<li>Take away all the constants <code>C<\/code>.<\/li>\n<li>From <code>f()<\/code> get the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/en.wikipedia.org\/wiki\/Polynomial\">polynomium<\/a> in its <code>standard form<\/code>.<\/li>\n<li>Divide the terms of the polynomium and sort them by the rate of growth.<\/li>\n<li>Keep the one that grows bigger when <code>N<\/code> approaches <code>infinity<\/code>.<\/li>\n<\/ol>\n<p>Our <code>f()<\/code> has two terms:<\/p>\n<pre><code>f(N) = 2 * C * N ^ 0 + 1 * C * N ^ 1\n<\/code><\/pre>\n<p>Taking away all the <code>C<\/code> constants and redundant parts:<\/p>\n<pre><code>f(N) = 1 + N ^ 1\n<\/code><\/pre>\n<p>Since the last term is the one which grows bigger when <code>f()<\/code> approaches infinity (think on <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/en.wikipedia.org\/wiki\/Limit_%28mathematics%29\">limits<\/a>) this is the BigOh argument, and the <code>sum()<\/code> function has a BigOh of:<\/p>\n<pre><code>O(N)\n<\/code><\/pre>\n<hr>\n<p>There are a few tricks to solve some tricky ones: use <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/en.wikipedia.org\/wiki\/Summation\">summations<\/a> whenever you can.<\/p>\n<p>As an example, this code can be easily solved using summations:<\/p>\n<pre><code>for (i = 0; i &lt; 2*n; i += 2) {  \/\/ 1\n    for (j=n; j &gt; i; j--) {     \/\/ 2\n        foo();                  \/\/ 3\n    }\n}\n<\/code><\/pre>\n<p>The first thing you needed to be asked is the order of execution of <code>foo()<\/code>. While the usual is to be <code>O(1)<\/code>, you need to ask your professors about it. <code>O(1)<\/code> means (almost, mostly) constant <code>C<\/code>, independent of the size <code>N<\/code>.<\/p>\n<p>The <code>for<\/code> statement on the sentence number one is tricky. While the index ends at <code>2 * N<\/code>, the increment is done by two. That means that the first <code>for<\/code> gets executed only <code>N<\/code> steps, and we need to divide the count by two.<\/p>\n<pre><code>f(N) = Summation(i from 1 to 2 * N \/ 2)( ... ) = \n     = Summation(i from 1 to N)( ... )\n<\/code><\/pre>\n<p>The sentence number <em>two<\/em> is even trickier since it depends on the value of <code>i<\/code>. Take a look: the index i takes the values: 0, 2, 4, 6, 8, &#8230;, 2 * N, and the second <code>for<\/code> get executed: N times the first one, N &#8211; 2 the second, N &#8211; 4 the third&#8230; up to the N \/ 2 stage, on which the second <code>for<\/code> never gets executed.<\/p>\n<p>On formula, that means:<\/p>\n<pre><code>f(N) = Summation(i from 1 to N)( Summation(j = ???)(  ) )\n<\/code><\/pre>\n<p>Again, we are counting <strong>the number of steps<\/strong>. And by definition, every summation should always start at one, and end at a number bigger-or-equal than one.<\/p>\n<pre><code>f(N) = Summation(i from 1 to N)( Summation(j = 1 to (N - (i - 1) * 2)( C ) )\n<\/code><\/pre>\n<p>(We are assuming that <code>foo()<\/code> is <code>O(1)<\/code> and takes <code>C<\/code> steps.)<\/p>\n<p>We have a problem here: when <code>i<\/code> takes the value <code>N \/ 2 + 1<\/code> upwards, the inner Summation ends at a negative number! That&#8217;s impossible and wrong. We need to split the summation in two, being the pivotal point the moment <code>i<\/code> takes <code>N \/ 2 + 1<\/code>.<\/p>\n<pre><code>f(N) = Summation(i from 1 to N \/ 2)( Summation(j = 1 to (N - (i - 1) * 2)) * ( C ) ) + Summation(i from 1 to N \/ 2) * ( C )\n<\/code><\/pre>\n<p>Since the pivotal moment <code>i &gt; N \/ 2<\/code>, the inner <code>for<\/code> won&#8217;t get executed, and we are assuming a constant C execution complexity on its body.<\/p>\n<p>Now the summations can be simplified using some identity rules:<\/p>\n<ol>\n<li>Summation(w from 1 to N)( C ) = N * C<\/li>\n<li>Summation(w from 1 to N)( A (+\/-) B ) = Summation(w from 1 to N)( A ) (+\/-) Summation(w from 1 to N)( B )<\/li>\n<li>Summation(w from 1 to N)( w * C ) = C * Summation(w from 1 to N)( w ) (C is a constant, independent of <code>w<\/code>)<\/li>\n<li>Summation(w from 1 to N)( w ) = (N * (N + 1)) \/ 2<\/li>\n<\/ol>\n<p>Applying some algebra:<\/p>\n<pre><code>f(N) = Summation(i from 1 to N \/ 2)( (N - (i - 1) * 2) * ( C ) ) + (N \/ 2)( C )\n\nf(N) = C * Summation(i from 1 to N \/ 2)( (N - (i - 1) * 2)) + (N \/ 2)( C )\n\nf(N) = C * (Summation(i from 1 to N \/ 2)( N ) - Summation(i from 1 to N \/ 2)( (i - 1) * 2)) + (N \/ 2)( C )\n\nf(N) = C * (( N ^ 2 \/ 2 ) - 2 * Summation(i from 1 to N \/ 2)( i - 1 )) + (N \/ 2)( C )\n\n=&gt; Summation(i from 1 to N \/ 2)( i - 1 ) = Summation(i from 1 to N \/ 2 - 1)( i )\n\nf(N) = C * (( N ^ 2 \/ 2 ) - 2 * Summation(i from 1 to N \/ 2 - 1)( i )) + (N \/ 2)( C )\n\nf(N) = C * (( N ^ 2 \/ 2 ) - 2 * ( (N \/ 2 - 1) * (N \/ 2 - 1 + 1) \/ 2) ) + (N \/ 2)( C )\n\n=&gt; (N \/ 2 - 1) * (N \/ 2 - 1 + 1) \/ 2 = \n\n   (N \/ 2 - 1) * (N \/ 2) \/ 2 = \n\n   ((N ^ 2 \/ 4) - (N \/ 2)) \/ 2 = \n\n   (N ^ 2 \/ 8) - (N \/ 4)\n\nf(N) = C * (( N ^ 2 \/ 2 ) - 2 * ( (N ^ 2 \/ 8) - (N \/ 4) )) + (N \/ 2)( C )\n\nf(N) = C * (( N ^ 2 \/ 2 ) - ( (N ^ 2 \/ 4) - (N \/ 2) )) + (N \/ 2)( C )\n\nf(N) = C * (( N ^ 2 \/ 2 ) - (N ^ 2 \/ 4) + (N \/ 2)) + (N \/ 2)( C )\n\nf(N) = C * ( N ^ 2 \/ 4 ) + C * (N \/ 2) + C * (N \/ 2)\n\nf(N) = C * ( N ^ 2 \/ 4 ) + 2 * C * (N \/ 2)\n\nf(N) = C * ( N ^ 2 \/ 4 ) + C * N\n\nf(N) = C * 1\/4 * N ^ 2 + C * N\n<\/code><\/pre>\n<p>And the BigOh is:<\/p>\n<pre><code>O(N\u00b2)\n<\/code><\/pre>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">8<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Big O, how do you calculate\/approximate it? <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] I&#8217;ll do my best to explain it here on simple terms, but be warned that this topic takes my students a couple of months to finally grasp. You can find more information on the Chapter 2 of the Data Structures and Algorithms in Java book. There is no mechanical procedure that can be used &#8230; <a title=\"[Solved] Big O, how do you calculate\/approximate it?\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/\" aria-label=\"More on [Solved] Big O, how do you calculate\/approximate it?\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[457,612,843,1369,325],"class_list":["post-34524","post","type-post","status-publish","format-standard","hentry","category-solved","tag-algorithm","tag-big-o","tag-complexity-theory","tag-optimization","tag-performance"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] Big O, how do you calculate\/approximate it? - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Big O, how do you calculate\/approximate it? - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] I&#8217;ll do my best to explain it here on simple terms, but be warned that this topic takes my students a couple of months to finally grasp. You can find more information on the Chapter 2 of the Data Structures and Algorithms in Java book. There is no mechanical procedure that can be used ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-19T03:09:29+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Big O, how do you calculate\/approximate it?\",\"datePublished\":\"2023-03-19T03:09:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/\"},\"wordCount\":836,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"keywords\":[\"algorithm\",\"big-o\",\"complexity-theory\",\"optimization\",\"performance\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/\",\"name\":\"[Solved] Big O, how do you calculate\/approximate it? - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"datePublished\":\"2023-03-19T03:09:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Big O, how do you calculate\/approximate it?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Big O, how do you calculate\/approximate it? - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Big O, how do you calculate\/approximate it? - JassWeb","og_description":"[ad_1] I&#8217;ll do my best to explain it here on simple terms, but be warned that this topic takes my students a couple of months to finally grasp. You can find more information on the Chapter 2 of the Data Structures and Algorithms in Java book. There is no mechanical procedure that can be used ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/","og_site_name":"JassWeb","article_published_time":"2023-03-19T03:09:29+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Big O, how do you calculate\/approximate it?","datePublished":"2023-03-19T03:09:29+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/"},"wordCount":836,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["algorithm","big-o","complexity-theory","optimization","performance"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/","url":"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/","name":"[Solved] Big O, how do you calculate\/approximate it? - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2023-03-19T03:09:29+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-big-o-how-do-you-calculate-approximate-it\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Big O, how do you calculate\/approximate it?"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/34524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=34524"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/34524\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=34524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=34524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=34524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}