Here in NL we have some homeless, but also lots of government systems in place to offer housing and incentives to possibly work or get schooling.
In the end this is actually cheaper, as to prevent crime and what not. Not sure how this would work in the US.