Small correction: Foreigners from within the EU. Many of the Danish software companies have contracts with e.g. banks and government organisations, that makes them nervous about taking in people from outside the EU.
It depends very much on the company. It should be easy enough to find someone willing to hire you, but many won't.
I actually meant outside EU. I do not know of any places that would exclude foreigners due to government contracts. I see no lack of foreign hires within fintech and medical, and the usual government contract dumpsters (KMD, Netcompany, that sort) also hire foreigners. I myself work in a place that employs a lot of engineers from India on-site for example, and I know many companies like it.
Foreigners from within EU will have easier paperwork and living situation though.
I know nothing about this particular "algorithm" or how it is used, other than that it was to my knowledge meant for use in job centers - i.e. it applies to someone who is already unemployed and unable to find work on their own for whatever reason (we should not judge, every life is different). In some cases, those on social benefits are also forced to job centers despite their condition, which might negatively affect this crude "algorithm" as well.
In other words, it does not represent the job market or life in Denmark as a whole. With a 2.5% unemployment rate that should be more or less obvious.
Of course our job market has a degree of ageism, sexism and racism (with the rather racist nationalist parties being popular in some regions), unfortunate as it may be. A male, white Dane in their 20s is likely going to have an easier time getting jobs than a female foreigner in their early 30s, where the language barrier, additional paperwork for work visa and non-zero risk of maternity leave (can easily be 50 weeks, which is costly in industries where the standard is full rather than partial salary) may make a small company uncomfortable.
But while I cannot speak for industries I have never worked in, industries that we are familiar with here on HN are fully internationalized and would hire a foreigner in the blink of an eye, and such a person would is unlikely to ever discover a job centers.
TL;DR: don't worry about this crappy "algorithm".