I have a 2d grid, and there are situations where the player selects the 3d model of an exit (like a gate) so they could leave, but in reality, the exit is comprised of multiple tiles in the grid:  In this example, the exit is 4 tiles. Right now, I'm just thinking of brute-forcing it and doing pathfinding for each exit tile (that means, in the example, 4 times), and just choose the one with the shortest path, but I'm wondering if there is a more efficient way to do this. Maybe do it only on the extremities of the tile group (in the example, Exit 1 and Exit 4)? Maybe edit my A* code such that each tile being searched through has multiple heuristic scores (one for each possible destination tile)? Or maybe the heuristic score I assign is the average of all heuristic scores for each destination tile? I also want to take into consideration other situations in the future where the exit tiles are not necessarily adjacent to each other, even if collectively they are considered one single exit, like this:  So it should figure out that Exit 5 is the shortest path.
I have my A* pathfinding algorithm right now working such that given a graph it can find the route from one starting node to one goal node.   This works well for many problems, but sometimes I find that multiple goal nodes are valid.  For example, in a game, an NPC might have to go to a switch to shut a door. If there are multiple switches that shut the door in question, it doesn't matter which switch it goes to - it just needs to go to one of them.  How can I augment my pathfinding algorithm to find the path to the best goal (the shortest path)? As in, the algorithm searches for multiple goals and when it finds just one, it returns the path to that one.  One solution would be to run the algorithm as many times as there are valid goals, but you can guess why that might be inefficient.
Your communities list is not visible in mobile web on site where you don’t have an account If you don’t have an account for some site, you can still see a list of your communities via top bar menu of this site, e.g. on 3D Printing:        But this works only for full web, in mobile web «sign up or log in» is shown:        When you have an account then the list of your communities is shown even for mobile web: Is logic subjective? If logic is constructed from axioms, and axioms are depended on observation which in term could be subjective, does this means that logic could be limited to our observation, and not really absolute and fundamental? I am working on a website for a client, and even though the site ranks extremely well for various different keywords (which is good), if I search for the site's name the homepage does not appear even on the second page on Google. I have to add the .com so it will appear.  But, for big brands like Best Buy, Nike and millions of others it is enough to just search for the brand itself and the first or second suggestion on Google is the brand's homepage.  How can I raise my brand's authority in Google so it will appear in Google on the first page when some searches for it?  I have tried changing the breadcrumbs so instead of "HOME" it is now the brandname, linked to the homepage. I thought that it will help with internal linking if the anchor text is the brand's name instead of the word "HOME".  Any ideas please? I've noticed a distressing tendency for questions that seem basic or overly short to be immediately closed and downvoted into oblivion.  Case in point:   Within a minute of being asked, this question received 12 downvotes and was closed as "not a real question".  That particular question is a very real, non-trivial question, but it had somewhat poor grammar and looked a little like a much simpler question.  Can we try to be a little more accepting? How do I show that a two-qubit state is an entangled state? The Bell state $|\Phi^{+}\rangle = \frac{1}{\sqrt{2}}(|00\rangle + |11\rangle )$ is an entangled state. But why is that the case? How do I mathematically prove that? ASP.NET MVC How to pass JSON object from View to Controller as Parameter I have a complex JSON object which is sent to the View without any issues (as shown below) but I cannot work out how Serialize this data back to a .NET object when it is passed back to the controller through an AJAX call. Details of the various parts are below.     var ObjectA = {         "Name": 1,         "Starting": new Date(1221644506800),          "Timeline": [             {                 "StartTime": new Date(1221644506800),                 "GoesFor": 200              }             ,             {                 "StartTime": new Date(1221644506800),                 "GoesFor": 100              }          ]     };   I am not sure how this object can be passed to a Controller Method, I have this method below where the Timelines object mirrors the above JS object using Properties.  public JsonResult Save(Timelines person)   The jQuery I am using is:          var encoded = $.toJSON(SessionSchedule);          $.ajax({             url: "/Timeline/Save",             type: "POST",             dataType: 'json',             data: encoded,             contentType: "application/json; charset=utf-8",             beforeSend: function() { $("#saveStatus").html("Saving").show(); },             success: function(result) {                 alert(result.Result);                 $("#saveStatus").html(result.Result).show();             }         });   I have seen this question which is similar, but not quite the same as I am not using a forms to manipulate the data.   I have also seen references to using a 'JsonFilter' to manually deserialize the JSON, but was wondering if there is a way to do it nativly though ASP.NET MVC? Or what are the best practices for passing data in this way? Given any uncountable subset $S$ of the unit interval. Then $S$ clearly has an accumulation point and indeed uncountably many (which might also be a nice exercise). So my question is: Is there an accumulation point, that again lies in $S$? Prove that if $X$ and it's closure $\overline X$ are connected and if $X\subset Y \subset \overline X$, show that Y is also connected. Can anyone give me a proof of the statement that if $X$ and its closure $\overline X$ are connected and if $X\subset Y \subset \overline X$, show that Y is also connected?  Thank you. Where can I find other RPG players? I'd really like to learn how to play pen-and-paper RPGs.  I know that it takes a few players to actually sit down and play, but I'm not at all sure where to find more gamers.  How do I find existing groups to join? Or, are there any resources online that may help me find existing RPG groups or players? How could C-3PO see Luke? How to write file into another What is Skynet's ultimate goal after defeating the resistance? Is it stated in any expanded universe what Skynet's plans were after wiping out the Human race (assuming that was its plan)?  Maybe space travel to colonise different planets or something else entirely? continuity, discontinuity derivative and relation to being derivative but its partials are not continuous is $$f(x) =\begin{cases} x^2\sin(\frac{1}{x}) \mbox{ for } x\neq 0 \\ 0  \mbox{ for } x= 0\end{cases}$$ a continuous function specially at point x=0?  And why being derivable its derivative is not continuous at x=0 since  $$f`(x) =\begin{cases} 2x\sin\frac{1}{x}-\cos\frac{1}{x} \mbox{ for } x\neq 0 \\ 0  \mbox{ for } x= 0\end{cases}$$?  I suspect this as to do with being derivable a function f $\mathbb{R}^n\rightarrow\mathbb{R}^m$ that don't imply its partial derivatives are continuous .this I don't get it so far.however partials derivatives if continuous is derivable.  Can you provide me a more general case than just one variable where f is derivable but its partials are not continuous? How do I enable hardware virtualization technology (VT-x) for use in Virtualbox? How to combine two jQuery results How do you combine two jQuery search results? eg:  var $allFoos = $('.foo'),     $allBars = $('.bar')     $allFoosAndBars = $allFoos + $allBars;   Obviously, I just made up that last line, but I hope it makes it sorta clear what I mean. To be clear, the example is greatly simplified, and it could be any arbitrary sets i'm talking about, so $('.foo, .bar') is not what I'm after. When ever I save a gedit file in a directory, two copies of it get saved with identical content. Ex: If the gedit file is named as file_name and saved in Home directory then when u ls the Home directory you get file_name and file_name~ in the list. When the file command is run against them I get ASCII text, with very long lines for both of them when I view their contents using the less command they seem to largely contain identical content. The ~ file is a copy of the file when it was saved for the penultimate time. Can someone please help me in understanding as to why such a file (the file with a trailing ~ mark in its name ) is created? I learned that the force from a magnetic field does no work. However I was wondering how magnets can be used to pick up pieces of metal like small paperclips and stuff. I also was wondering how magnets can stick to pieces of metal like a refrigerator? Without recasting and in lieu of unsightly suspensive hyphenation, could these work? The en dash (which means "to") is used between the figures, and the hyphens are used in the compound modifier. To me, the examples below are concise and clear.  Do you agree that the examples below are 100% punctuated correctly--yes or no?  45–50-year-old men  10–20-mile radius  $45–$55-million-per-year industry  $100,000–$150,000-a-year savings  10–15-degree temperature difference  $2–$5-per-day service fees  45–75-cent-a-week raises  55–65-mph speed zone  15–20-ounce steaks  20%–40%-a-year tax increases Is there a fast way to get to the bottom of the Death Star? In Tiny Death Star, you can get to the top of your tower by tapping on the top of the screen while avoiding the "Add Level" button. However, the only way I can find to go to the bottom of the tower is to wait for someone to want an elevator ride, and tap on the button to give them that ride. Is there any other hot-spot for getting to the bottom of your Death Star? The hydrogen protons undergo quantum tunnelling in the the sun to fuse into helium, but are only able to do so as they are under immense heat and pressure and the protons and electrons get separated. But our digestive system also makes use of quantum tunnelling to quicken the digestive process, but how do the enzymes free up the electrons when our body temperature is so low?