Upgrading my website to be multilanguage with subdirectories, Without losing my good google ranking

I have a Belgium regular HTML website where you can rent my jazzband for events, For years my website was in dutch only, but I would like to also have the french speaking belgium citizens as new costumers. (Belgium has north dutch speakers and south french speakers) My ranking on google is really good, so I do not want to lose my position when adding the french language on it.(note: I always will have and want mostly dutch visitors)

My website is now still www.myexamplesite.be (all my extra pages are in my rootfolder)

For my upgrade I did copy all my pages and translated them, and used the *hreflang="nl-BE" and "fr-BE"*stuff on all my pages linking both languages on each page. All my pages are organised in a subdirectory, all dutch pages in /nl/.. and french pages in /fr/.. On each page there is a menubutton to swith language (it links to the html in the right directory).

for the moment I have this:

root/index.html  --> www.myexamplesite.be (a dutch written homepage with all my links leading to the /nl directory. root/nl/index.html --> www.myexamplesite.be/nl/index.html this is a copy of my 'root/index.html' root/fr/index.html --> www.myexamplesite.be/fr/index.html this is the french translated homepage 

Is this the best option? (thinking about my ranking), will google automatically lead the french speakers to my /fr/index? and the dutch to nl/index or root/index ? Or should consider ‘language redirect with htaccess’ on my root/index.html? Or…other options?

2-dimensional ranking of multiple arrays

Given a constant dimension $ d$ , say $ d=2$ we want the following:

Input: $ A_1\ldots A_m$ : $ m$ arrays of length $ n$ of integers

Each input array $ A_i$ must be a permutation of the numbers $ 1..n$ , so in each array each number from $ 1$ to $ n$ appears exactly once.

Output: For each pair (in the case $ d=2$ ; triplets in the case of $ d=3$ etc.) of numbers $ (1,1),(1,2)\dots(n,n)$ , we want a count for in how many input arrays the first number of the pair is also the first to appear in the array (among the numbers of that pair).

Question: Can this be done quicker than $ O(mn^d)$ in the worst case?

Upper and lower bounds

The output is represented as a $ d$ -dimensional array of length $ n$ . Therefore a lower bound for the runtime complexity is $ O(n^d)$ .

The naive approach is to create $ m$ mappings from each number to its index for each input array. Then for all $ n^d$ tuples, walk through the $ m$ mappings, yielding a runtime complexity upper bound of $ O(dmn^d)$ and since $ d$ is a constant this is $ O(mn^d)$ .

Examples

A = (1,2,3,4),        Output =  1 2 3 4     (1,2,3,4),                  -------     (1,2,3,4),     =>       1 | 4 4 4 4     (1,2,3,4)               2 | 0 4 4 4                             3 | 0 0 4 4     d=2, m=4, n=4           4 | 0 0 0 4  =======================================  A = (4,3,2,1),         Output = 1 2 3 4     (1,2,3,4),                  -------     (1,2,3,4)      =>       1 | 3 2 2 2                             2 | 1 3 2 2     d=2, m=3, n=4           3 | 1 1 3 2                             4 | 1 1 1 3 

Application

While writing poker analysis software, I’m particularly interested in the case $ d=3, m\approx 1250, n\approx 1250$ . I estimate that the naive $ O(mn^d)$ solution takes multiple hours but less than a day when using native Java arrays (no hashmaps etc) on a single thread.

Problems ranking in different countries for .com TLD

Certain page on my site shows up on the first page of ‘google.com’ but when I’m searching for the same phrase in google by changing the country in the Google’s search settings, it doesn’t show up on the 1st page.

Say for instance, if I search for this phrase: hire a zoho developer It appears on the Google’s first page.

But the same page is not showing up on the first page of the Google search results for the same phrase when I’m changing the country in the Google Search settings.

My competitors’ sites rank consistently across all geographical versions of Google. Is there something I am missing out on? 

Ranking timeline system

Does anyone know a good way to show when someone become a legend, ancient, Myths…. Like a system that show how long time it take for someone to become it. I want to create a ranking power system that show how powerful someone can get with time.

A example of this:

  • Hero – 50 year
  • Legend – 500 year
  • Ancient – 1000 year
  • Myths – 2000 year

Which list structure should I go with for SEO ranking on a single page?

SOLUTION 1

    Hyundai car service
  • Mumbai
  • Pune
  • Delhi
  • Lucknow
  • —–OR—–

    SOLUTION 2

      Hyundai car service
  • Hyundai car service in mumbai
  • Hyundai car service in pune
  • Hyundai car service in delhi
  • Hyundai car service in lucknow
  • My Targeted key phrases are >

    1. Hyundai car service in Mumbai
    2. Hyundai car service in pune
    3. Hyundai car service in delhi
    4. Hyundai car service in lucknow

    Which solution is best for SEO?

    I have heard that the keyword phrases should be there on the page atleast once with the same or similar order, so I am confused which solution to take.

    Can you provide any website where they used solution 1 and are doing great at SEO rankings.

    Does a country code secondary domain (such as .com.nl) have lower ranking than a ccTLD (such as .nl) with content specific for that country?

    I know that search engines like Google value more country code top level domains (ccTLD) on content that is specific to residents living in said countries, that is, the website hosted at voorbeeld.nl and whose content is specific for Dutch visitors has a higher rank than voorbeeld.com

    And what about voorbeeld.com.nl? Does this example is negatively affected in contrast to voorbeeld.nl?

    Return a ranking points of User follow week, month, year from multiple table with mySQL

    Here is the structure of my tables:

    User

    |--------|------------| | id     | name       | |--------|------------| | 1      | Name1      | | 2      | Name2      | | 3      | Name3      | |--------|------------| 

    Post

    |--------|------------|-------------|--------------------| | id     | content    | user_id     |   created_at       |  |--------|------------|-------------|--------------------| | 1      | Content1   |  1          |2020-01-17 14:03:31 | | 2      | Content2   |  1          |2020-01-17 16:18:23 | | 3      | Content3   |  2          |2020-01-17 16:29:13 |  |--------|------------|-------------|--------------------| 

    Comment

    |--------|------------|-------------|----------|---------------------| | id     | comment    | user_id     | post_id  |   created_at        | |--------|------------|-------------|----------|---------------------| | 1      | Comment1   |  1          |   1      | 2020-01-20 18:29:19 | | 2      | Comment2   |  1          |   1      | 2020-01-22 17:25:49 | | 3      | Comment3   |  2          |   2      | 2020-01-28 11:37:59 |  |--------|------------|-------------|----------|---------------------| 

    Vote

    |--------|-------------|----------|-----------------------| | id     |  user_id    | post_id  |    created_at         | |--------|-------------|----------|-----------------------| | 1      |   1         |   1      | 2020-01-20 15:08:55.0 | | 2      |   1         |   2      | 2020-01-20 15:13:29   | | 3      |   2         |   2      | 2020-01-20 15:13:32   | |--------|-------------|----------|-----------------------| 

    I want to find the top score of 10 users by week, month, the year following to formula:

    A user creates 1 post will have 10 points. A user creates 1 comment in a post that will have 5 points. A user votes in a post that will have 2 points. Could anyone help me with this, please!

    Thank you so much.

    A survey on ranking keyword search results

    To rank the keyword search results, I’m trying to crack the way the Airbnb algorithm or similar ones work. I’m not asking which features they are using since those are different depending on the business needs. What I’m asking is where can I find a paper/survey/book to see what are the various relevancy metrics in addition to TF-IDF and PageRank? and how can I merge various metrics/algorithms into a single algorithm to sort the search results?

    Input: a couple of keywords Output: a ranked list of options relevant to the input keywords

    Anything from links to surveys/books/algorithms/open-source software would work.

    Best