Thanks Dave very helpful. I'm using R and I can combine polygons that touch a central/target polygon based on the population for that polygon or based on the smallest distance between the centroid of the central polygon and the centroids of the touching polygons. I'm using R so it would be nice if there is an R program/package. Right now I'm using loops in R which is slow. A C program would be nice to speed things up. I'm familiar with calling C and Fortran from R. I think that I called python from R at some point but it requires a big effort to get things set up.
Dave
PS when I get this working, I'll make a dataset with rows giving the ZCTAs for each "condensed/combined" ZCTA group.
Maybe someone will be able to use it to de-identify a dataset with zipcodes/ZCTAs