Graph theory: BFS (Breadth First Search) – why is current processed first?

I am referencing some code I found on GeeksForGeeks.com: Why is the current node printed (and processed) first before its children are processed? Wouldn’t “breadth first” mean “Process children first, then process parent”? or, is that only for Trees? I can’t be the only one to not understand this, so instead of flaming me, somebody please simply post the answer?

void Graph::DFSUtil(int v, bool visited[])  {      visited[v] = true; <-- why is this printed FIRST?     cout << v << " ";       // Recur for all the vertices adjacent      // to this vertex      list<int>::iterator i;      for (i = adj[v].begin(); i != adj[v].end(); ++i)          if (!visited[*i])              DFSUtil(*i, visited);  }   // DFS traversal of the vertices reachable from v.  // It uses recursive DFSUtil()  void Graph::DFS(int v)  {      // Mark all the vertices as not visited      bool *visited = new bool[V];      for (int i = 0; i < V; i++)          visited[i] = false;       // Call the recursive helper function      // to print DFS traversal      DFSUtil(v, visited);  }  

What is the current status of the UA Revised Ranger?

14 months ago, an Unearthed Arcana supplement was published that discussed how the ranger described in the Player’s Handbook was under powered. These rules reimagined the ranger’s abilities, and suggested that an official version would be released later.

Finally, we come to implementation. If this iteration of the ranger, or a future revision of it, grades high enough, our plan is to present it as a revised ranger in a future D&D sourcebook.

Does that Sourcebook exist yet? If not, have the devs given an update or told us their intentions?

What are the downsides of asking your current users to participate in a study (e.g. for new functionality)?

What I mean is, you rarely see companies put some form of banner out there on their homepage saying:

“Hey, we’re developing some new stuff and would like our customer’s opinions on it. Take a quick test!”

Usually, they do those tests behind closed veils and with specifically filtered testers (e.g. in remote testing).

So my question is, what is the primary reason for that?


These thoughts come to mind as arguments against it:

  • Only specific users would participate and skew the perspective. The average user, who is the main buyer, will ignore it; while the power or frequent users will use the chance to complain or inject their very specific wishes.
  • Your users are also accustomed to the site by now and will most probably view any new design changes as “bad” and will vote for keeping what they already know.

On the other hand, these are the things that could be said in favor of it:

  • You can get insight into problems that only long-term users might face, while new users do not even know they exist.
  • You build more loyalty due to the trust you display for their opinion.

I guess I kind of answered my own question, as it usually depends on context. You use foreign, new users to test things that are supposed to attract new paying customers, while you can ask existing users when you want to improve deeper & more complex functionality.

But it seems you never see the second case, but most always the first one.

Does anyone have further points to add to the two lists or other thoughts related to that?

How to get all variables for the current plpgsql function?

Is it possible to get all the variables of a PL/pgSQL function (including input parameters and DECLAREed variables)?

My goal is to collect these variables into a jsonb object with each variable name as the key, and variable value as the value in json. I know it’s possible to get the name of the current function. I am just wondering if it’s possible to get the variables/parameters and their values.

Can current quantum computers decide languages that Turing Machines cannot?

I am currently learning Computing Theory at university, and we were on the topic of Turing-Decidability, Recognizability, etc. Showing that a problem is undecidable with Turing machines due to reductions got me thinking about all the Quantum Computer craze.

As such my question is as follows

Does there exist some language L that is not decidable by a Turing Machine, but is decidable by a quantum computer?

My hunch is no, as from what I understand about Quantum Computers, you can simulate them (albeit slower) using a Turing Machine. However my knowledge of Quantum Computing is limited to a 1.5 hour lecture from Microsoft on YouTube, and I would assume there was a lot more in the way of recent developments that I am not knowledgeable enough to understand

Symbol for current, ongoing event

In my app I need to display an icon for an event which is currently ongoing. It’s a forecast app for forecasters, where they can issue a forecast in certain time window (event). I’m currently using a plane icon from fontawesome, but I’m not sure at all if it’s the best match for that, especially because my app has nothing to do with flights: enter image description here

I would like something more general, but I have no idea what could symbolize an ongoing event.

Should I separate current users and potential customers?

My company is a B2B Software as a Service. We have a web with 2 main functions:

  1. Log in for my current users (hundred of thousands)
  2. a marketing web for my potential new customers, (portfolio, blog, contact us, etc.), about hundred leads.

It is recommended to put a first landing page to asking if who is in the browser is a current user or a lead, and depending on it, redirect to different webs?

I think it can improve the web optimization for each audience, and help keeping separated metrics (Analytics), but can be hard for who is browsing to give an additional click for accessing the page.

Permanently Remove Current Navigation Column SharePoint 2013

I’ve built a Policy Library for my company by using a Wiki Page Library on SharePoint 2013.

The user is directed between pages via hyperlinks.

I’ve added the following CSS to a Script Editor to remove the Current Navigation Column from each page (to create more of a website feel for the user):

<style type="text/css">    #sideNavBox{       display:none;    }   </style>   

Essentially, this has worked pretty well. Occasionally though the Navigation Column appears for a couple of seconds when the user navigates between the pages (i.e. appears unhidden). The page then reverts to the full screen view.

If someone could provide some code to ensure the Navigation is permanently hidden it would be much appreciated. I should mention that I’m a SharePoint novice and do not have access to SharePoint Designer.

Check user membership of current user in security group using javascript

I am working on SharePoint 2016 on-premises environment. I need to implement the some functionality based on the result whether the currently logged-in user is a part of a security group or not using javascript/jquery. Can someone advise on how I can check the user membership in a security group?