Here's HUD's page for helping the homeless...
https://www.hud.gov/program_offices/comm_planning/homeless
Here's an idea.
1. Cities should make sidewalk sleeping illegal.
2. There should be a building to house addicts - people who would otherwise be sleeping on the street because of addictions.
3. Another building to house people with mental problems who aren't addicts.
4. Another building to house single women who don't fall into the above categories.
5. Another building to house single men who don't fall into the above categories.
6. A program to re-home families with young children. (saving the re-homing for this category, for the well-being of children.) This might require some kind of Habitat for Humanity home building project, or section 8 rental assistance.
Anyone who didn't like living in their building could work their way out but if they sleep on the street they get to spend 2 days in jail then taken to the appropriate building.
Tell me why this wouldn't work.